Counterexample: WW2, where most of US industrial capacity was repurposed to win the war. Producers got paid, but the amounts they got were limited. They didn't get to just name their price.
Right, and in times where price controls were imposed this principle (you can't force people to operate at a loss, but you can limit price gouging) have been applied.