For most people, the gut reaction to this question is immediate: "Of course not!" But there are fringe examples, such as Israeli airport security, where blatant racial stereotyping is used, can be justified by the great safety that the airport provides to passengers. But still, can it be justified?
No, racism cannot be justified
People mistake racism for discrimination
Racism is understood as "prejudice plus institutional power". These two elements work together to enable and socially/legally legitimize racism.