Yes, it's legal to buy cannabis stocks, regardless of whether the consumption of recreational or medical marijuana is legal in your state. When you purchase a stock, you purchase a slice of ownership in a company — not the product itself.