Yeah, of course. All other forms of gambling have an inherent negative return (the house has favorable odds always), while the stock market has a positive return inherently as most companies on the stock market are profitable, so it's better than slots or sports gambling for sure