It is possible in some circumstances to purchase shares in a company directly from the company that’s providing them. But for most investors, those opportunities aren’t available. In general, you’ll need to open an account with a brokerage firm to buy and sell stocks.