Even Lenin for a time allowed Capitalism:
New Economic Policy https://en.wikipedia.org/wiki/New_Economic_Policy
So does Red China, in its own way.