The robot itself can't be racist, but it will be programmed by humans who have their own biases.
Undark Magazine's Rod McCullom discusses his article, "Robot Police Dogs Are on Patrol, But Who’s Holding the Leash?: Numerous cities have acquired dog-like robots for policing. Researchers say the lack of transparency is worrying.