My partner decided to get "into tech" in ~2018. Her reason more or less amounted to looking at me and determining "it's a cushy job that pays very well." For a while, I tried pointing her to various sources to start learning a bit about software development and programming; there's no barrier to installing PyCharm CE and Github, after all. But there was zero interest and zero natural curiosity. She just did some certificate coursework, passed, then started looking for a job, and nothing beyond that.
In a lot of ways, software developer has been brought down to earth as a more "normal" career. You don't really hear about lawyers working on passion law projects at night or mechanical engineers designing skyscrapers as a hobby; the path for that is just go to school -> get internship -> get fulltime job -> do your 9-5.
The thing is, my partner isn't alone. She represents the vast, vast majority of new software developers in the past 15 years. The industry has grown, the pay has exploded, people who worked retail could parlay a 6-week bootcamp into a six-figure salary. Obviously people would hop in even if they didn't know what a compiler was.
But in a post-ZIRP world companies are seriously reevaluating the value of the average software developer. In 2010, a software dev was far more likely to have at least some personal interest in software, or even just computers in general. Now, you have software developers who never touched an actual, non-phone/tablet computer before entering their university courses. They're not stupid--they can pass a leetcode interview just fine--they just don't care about technology beyond using it as a means to pay rent.
Even if we return to near-ZIRP, there's going to be less demand for massive software dev teams. Everyone hates him, but you have to begrudgingly admit that Elon successfully demonstrated you don't need massive dev teams to build and run software, even at Twitter's scale. (obviously it has other problems due to Elon's incompetence, but nothing more developers would solve.) Most companies could cut their dev team size by 50% and end up net-positive due to less overhead--the challenge is figuring out which 50% to cut.
So, yes. The tech downturn for this group of people--the non-passionate 9-to-5ers, particularly juniors--will last for many years, and that will lead to many jumping to other careers.