Of course you can, and that's what socialism has been about for decades now; the mixed economy.