There are a lot of factors at play - where you grew up and who raised you could be two.
I was raised not far from NYC, and we went there since we were little kids, and I was exposed to lots of diversity and culture. I think that can help a lot. A lot of the kids I know from that town all turned out MAGA - so it depends who raised them, and a lot of people don't even go to the city even when they are just 20 miles away.
I had a father who I did not like much, but he was very progressive and educated and I saw the value in those values, and I thank him for sharing them.
But yet I still have implicit bias. I think racist thoughts. Those were all given to me by society, by our systemically racist system. Because they did not come from my upbringing nor from a lack of exposure to diversity, though I didn't live in it, which is kind of a big deal. My town was basically all white, large Jewish population, some Asians, and like ten black people.