When I was younger, living at home in a small white only town, & under my parents influence, I could see I was starting to "learn" the racist thoughts of past generations.
It wasn't until I went to college, that I was even exposed to anyone that wasn't white.

I'm almost 42 now. Been out of their home 20 yrs. And I've learned on my own that I've come to accept almost any relationship or person, no matter the race, sex, age........ (I'm not perfect, I still have problems with people for other reasons though....like stupidity. lol)
I'm proud of myself.
And I still CRINGE when my mom makes a comment about someones race.

I try to remember that it was probably the way they were brought up to think. Things have changed, SLOWLY, but not enough.
ETA: I just remembered a good example of my upbringing. When DH & I decided to get married, I STRESSED & STRESSED about how to tell my parents that we were going to get married in his Baptist church, & not our Catholic church.

My parents don't even GO to church. THAT's how bad my town was. My mother was so worried about telling my grandfather.

(My DH is white like me. Can you imagine their reaction if he had been anything else?)