Not necessarily, some of it is an intrinsic fear of the unknown. A young kid 7 or 8 years old on my street when I was growing up answered the door to the first black person he saw in real life, and started crying his eyes out. His mother was mortified.
How does a child of 8 not know what a black person looks like? Did he grow up in a isolation cell?