Insofar as poor people and minorities tend to live in lousy school districts, that’s true.
Wealth and whiteness correlate strongly with good schools in the US. But I think what most people think of as “good” here is the vast majority go onto college - 4 year ones, there are lots of advanced courses, teachers don’t (have to) focus on behavior as much as academics, counseling is strong, there are plenty of resources for music, art, sports, classes are small, facilities are more than adequate (no shortage of books and lab equipment and laptops or whatever).
That said, economic and racial diversity are important ingredients in the “good school” mix for many people who are in a position to choose too.