You are partly right.
For example, general speaking, if you own a big company, your company will not produce everything. No doubt, you can do it, but you have to invest much more. However, most of time, after you calculated the net profit, you will find out it's better to buy from others.