actually Fast Co lists coder as one o the jobs that will decrease in demand with more machine learning and ai coding (computers programing computers... go straight to Sky Net
) ... Fast Co predicted a similar thing for UX as more interaction patterns become standardized. I'll try to find the article.
While predicting the future is always a bit of gamble by nature, I think there are some constants in life. No matter what happens in the world people will probably still wear shoes, yes forks to eat, sit on toilets a couple of times of day.
24 years ago when I entered design school the head of the department say us down and told us that ID was dead and that there were no more jobs in it... I've been gainfully employed the entire time... initially purely as an industrial designer, later as an industrial design leader, and after that in strategic design leading ID, UX, brand, yada yada yada... go deep on the thing you love and then expand outward.