A very long time ago, an economist whose name and nationality I do not remember, said that all economies are capitalist. What differentiates Communism from Capitalism is who owns the capital. In Capitalism largely private ownership, in Communism, state ownership.
Capitalism only works if there is socialism with it.
For periods of time the socialism is mostly for the wealthy.
For periods of time the socialism makes more sense in optimizing the economy for all.
At the end of the day the socialism always helps the wealthy and sometimes grows the middle class.
Some people are against socialism because they mischaracterize what it is.
A better way to say it is “all people are capitalist”. A person only does things when they get something they value in return. This also applies when they get something intangible (“good feeling”, “heavenly reward”, “karma”, “descendants to carry their name”, “admiration”, etc) in return.
In Russia or in China, despite communism, people still do work, even (especially) if it’s additional work over the thing they are assigned by the state (or representatives of the state, like their employer), only when compensated for it in some way. And, conversely, they don’t do their best work when not compensated fairly (willing buyer/willing seller of labor too). Hence the old Russian joke “they pretend to pay us and we pretend to work”.