You can't say you're not racist without being a racist, so yes. (EDIT: First test also called me a racist. I tried putting good words in the "bad" place a lot of times, so I think it was just me being stupid and not racist.)
I assume the same applies to sexism, so yes to that too.