I never intended to have a career as a programmer. I planned to work for two years, save a bit of money, and get a PhD in Chemistry. Forty years later I retired as a programmer. Every step was something new, I had 15 different employers (plus myself for 9 years starting two little companies). There was never a plan beyond finding a better/different/less irritating job, and constantly improving what I could do. I never gave any thought to what I wanted to end my career on. It actually ended entirely as my decision, I still was at the top of my ability, and my employer was happy to pay me, but I was tired of working.
While planning might work for some people, having a more short term view can work for others. The only thing I could ever control was what I was able to do, and when I was ready to move on. There are many optimizations available to succeed in life; not all are obvious.