Can you purchase stock directly from the company?

The company's stock no longer trades but when it did,  investors had to purchase stock through a broker or trading facility/service.