Counter-example: I started coding at 9, got my first at-home family computer 3 years later, and my parents graduated college when I was already in college. This was back when a PC cost more than my parents made in 2 months. Now laptops can be got for $300.
It's not about rich, it's about having coding after-school classes as available as soccer (or whatever) practice.