I've edited my initial response heavily as I think it was a bit confused and not very clear but as I've said an IPO is just a way to raise capital/money through a sale of shares. What the company chooses to do with that money could range from anything to reinvesting into the business immediately or saving that capital for down the line when they do want to acquire a company. In hindsight, I think I worded my initial answer pretty terribly because I don't actually think companies would go through the time consuming process of an IPO solely for an acquisition, but it would give them a large pool of capital for one.