Even if you don't really like programming, the takeover by Artificiality will mean that the value of Actuality will increase dramatically. So go for actual value in what you do.
My personal answer to that is "no", but I'm close enough to retirement that I don't have to consider changing careers to avoid it. I'll be gone if/when it becomes a real issue. However, if I were closer to the front end of my career, I'd certainly be looking to change, perhaps to technical writing.
But I don’t really think jobs will eventually dry up, because with the advent of ai, the competent developer’s productivity increases exponentially, and teams can stay lean and build unicorn businesses, case for startups
But for corporates at the end of the day, their hiring won’t change ig, most of the layoffs are not directly related to ai at all, is what I feel. They will keep on hiring people for the sake of hiring tbh