Definitely, trading is like gambling but like what some people said, it's not vice versa means gambling can't be trading. Both trading and gambling have risk, trading usually has long term risk since you're waiting for the pump in the market while gambling is just a short term risk which means a situation will occur after betting. Both should be learned but for me, trading is more complex than gambling 'cause you just need to rely on luck sometimes.
Both needs to learned in order to choose what best platforms will bring you higher chance to earn, though trading if you will be seeking for much deeper there are lots of educational ways to understand and not just to deal with luck, as gambling mostly depends from luck that will be at your side each time you play and bet.