100%, and to add to this... people who are just doing it for the money should absolutely quit, because they tend to end up wanting to switch roles or often quit a couple years in anyway.
People that actually enjoy writing software / solving problems are the ones that get ahead.
> people who are just doing it for the money should absolutely quit
I hate to tell you this. But any job that pays as much as a software dev in the USA is going to have 50% or more people who do the job for the money. You can learn to love what you do. But when you're 18 trying to find out what to do, for a lot of people money matters most.
I love being a software dev. I got obsessed when in college, made a lot of pet projects just for fun, kept that energy up throughout my career till I got married and had kids, and I am so glad I made that choice. But if it didn't pay what I knew back in college it pays, I wouldn't have done the job.
I've also noticed that over the years those are the candidates who are most unable to find a job. And having interviewed a fair number of candidates, the number of passionate devs out there is smaller than you'd expect.
People that actually enjoy writing software / solving problems are the ones that get ahead.