If you buy shares in a company, it doesn't necessarily mean you're buying it from another shareholder who wants to sell their stock. ... Prices on the primary market tend to be set prior to the IPO, so the investor knows how much they will pay in order to invest in shares of that company's stock.