>>16729030 (OP)>is getting (skill) a mistakeNever.
Are you actually asking "will getting (skill) lead to a well paying career"?
If so then it depends on which industry you are talking about, PLC programming isn't going to allow the use of AI code for a very long time, same for ECUs. Lots of non-critical commercial software companies will try to lay people off and replace them with AI, we'll see how this works out of them over the next 5 years.