I don't really have an opinion one way or another about whether it is okay
because it is a MOVIE. Movies depict all sorts of things that are not acceptable, such as slavery, rape of women, murdering men, and abuse of children.
My post was questioning your use of the term racism, when it sounded like what you saw was stereotyping instead. There is a big difference.