Well, and even the company matters. I was in IT since post-grad school (with a bit of engineering earlier). But with dot-bomb, a company that struggled through and then 2008, I was only in an "OK" position. It was really the period post 2010 that set things up a lot better.
Indeed. For me 2010-11 was when I got a full-time job as compared to contracting (small time) which was big jump for me in terms of job quality and money. Interesting enough I met many people who joined Amazon in same time frame and earning about 50% more than me in straight first job that I earned after with 8-10 years of experience. So yeah company part is important.
I wouldn't even say it was work quality; the job I had for a good period really set me up for my ultimate full-time job and I mostly liked it. But that ultimate job was a public company and even if not FAANG level comp, set me up pretty well and provided the leverage to make investments that were pretty solid during that very good period.