I'd say it depends on the nature of the racism/sexism. While being excessively abusive to someone is probably wrong in all cases, IC racism against elves, vikings, riombarans, ohnarians, asylonians etc. should be fine. Racism that is evidently based on OOC ideas is not okay.