In principle it's possible to have a company with no employees and all work done by vendors / contractors. But in practice this usually turns out to be less optimized than having at least some regular employees due to transaction costs. Organizational optimization is always a balancing act.