Learning to code just for fun is fun.
Learning to code just so you understand better the AI output makes sense.
Learning to code and making it your profession - I think times are really hard for juniors now. The bar will be high, especially considering systems thinking and general intelligence. Coding for work is not as much fun. Herding a bunch of LLM tools and trying to force them to make something you need is arguably not fun.
For what it's worth, I don't think those good old times of high salaries and relaxed work for developers will ever come back.