About a decade or so ago, the mantra "Learn to Code" was quite big, and a number of organizations launched to teach us all how to do just that. At the end of the decade, we even had a presidential hopeful--and eventually, a president--who coldly told a number of Americans who were losing their jobs to environmental regulations that they should "learn to code."
Here we are now less than a decade later*, and AI has started to cause mass-layoffs in these coding positions. What has AI not yet replaced? Skilled labor positions (electricians, plumbers, welders, etc). This is not to say that all of the time spent learning to code was wasted: there is still a need for some people to be able to check AI's output, for example, and there are always new avenues open to skilled programmers, to say nothing of programming as a hobby.
But, it is worth noting that there remains a high demand for blue-collar jobs, and that besides this there will generally always be three things which will be compensated: specialized skills, accountability, and willingness to to "undesirable" jobs.
----
*Less, in fact, that twice the four years needed to earn a B.S. degree in computer science, for those counting.