Yes, Muslims can invest in the stock market, as long as the investment is made in accordance with Islamic principles. Muslim investors should avoid companies that deal with interest on in prohibited industries, such as alcohol, gambling, and pork products.