If you move to a rich zip code your child goes to a well funded school, hangs out with rich kids behaves like a rich kid. Moving to a rich zip code (and supporting your child’s education) is a fantastic way to get your family on the path to generational wealth.
It really is. In fact there's some good studies that suggest that this is even true with race, where you don't need to move zip codes but simply move schools (a la "Everybody Hates Chris"), if the kids are young enough.
But clearly the causal connections here are not zipcode, but schooling, culture (or rather the knowledge to understand and navigate a culture), social connections, etc.