Racism is an opinion formed by observation of common experiences with people sharing the same traits over an extended period of time (often years) and noticing said behavior as being common and unique to that group. So no, idiots it's not taught, it's noticed through observation. Learn to think on your own instead of being programmed parrots.
^ see Origins of Racsim”