Absolutely false, and this is a harmful fallacy that keeps people from growing their wealth. Gambling, as in, in a casino, has a negative expected return. Investment in a sufficiently diversified portfolio has positive expected return for long enough time scales.
Gambling is defined by random events not by the negative expected return.
You could easily design a roulette with a positive expected return, still it’s gambling