That statement is true.
When we constantly use both racist and sexist language, our mind will be conditioned to put people in other sexes or race in demeaning position.
This tends to affect our perspective toward them and affect how we treat them as well.