It depends.
If your goal is making small apps, websites, things that aren't too critical performance-wise, I don't think you should learn to code.
But code isn't disappearing. Calculation-heavy processes, large apps, video games, basically things that need a deep understanding of tradeoffs, still require a lot of human inputs.
Will it be always that way, I don't know. But I'd like to think AI won't totally kill the code, in the same way compilers didn't kill assembly dev.