It is no way a crime to buy a stock that is on a public stock exchange in the United States or Canada. U.S. government restrictions on the use or sale of cannabis in no way include people buying regular stock in a publicly traded company.