Depends on just what you mean by racist. But yes, I have had racist friends. No, I did not try to change their views, but I refused to take part in jokes or conversations tinged with racism. Neither did I end the friendships. Had someone actually been a serious neo-nazi, KKK type racist, then I would never have been friends with them.