It's fine to follow your dream, but just make sure that your dream wants you too.
It also helps to have rich parents, if you grow up poor you understand the consequences of choosing the wrong career path can be devastating. Some people have the freedom to experiment and still get a soft landing, other people need to get it right the first time.
If AI came about 40 years ago, it would have been much more restricted and advanced much much slower.
But politics does not care for the average worker anymore. Every democratic country is slowly turning geriatric, so due to how democracy works, the will of the OLD is what runs societies. And job security is not one of those things, when the biggest voting block does not even work.