That's the only time when the money you pay for a stock goes right to the company, rather than to another trader.
There are no instances where a company will directly receive money when their stock is bought.