Yes. To a first approximation, ignoring a gigantic pile of complications due to incentives. And the person cleaning the office should get the same pay as well.
The cost of an item is often linked to how much was invested (because that is linked to how much it took to come to fruition, and therefore, how much it needs to sell at to recoup that investment). It's not only the 8 hours that is invested, it's the previous investment that needs to be recouped. That's one reason behind why different people cost different things, which is ultimately down to quality.
We're back to the initial question but at least we've dispensed with communism in the meantime.
Not relevant to the topic, but this one is not true.