What means to learn to code will shift, it will be a shallower knowledge. But a little bit of coding skill goes a long long way when controlling coding agents.
Learning to read code, and ask important algorithmic and architectural questions about the systems one is building will be key. Instead of raw production, the role will shift to curation and editorializing.
The best answer was "How do you know when the calculator is wrong?", for example when a miskey was entered. Same goes for AI, except knowing enough to spot mistakes or hallucinations takes a foundation knowledge.