Exactly. And even if it ultimately doesn't turn a profit (which, who knows, it probably will turn a profit) you've still created a pretty favorable circumstance for chip manufacturers.
There's a reason why basically only Intel does inhouse fabrication and even they have had to rely out outsourcing it.