Friend Issues

Hey guys. I just wanted your opinion, my friend recently got a new boyfriend, I mean I’m really happy she seems SUPER happy which is excellent. Buttttt... here’s the thing. I dislike him, a lot. We’ve been best friends for like 2 years and they’ve been dating for like a couple weeks. I dislike him because he is extremely racist. I am mexican, and one day we were all hanging out and where I go to school, there was a hardworking guy just selling ice cream and he goes “Someone go buy me ice cream from that beaner. Look at that fucking beaner” While I was in the car. I got up and left and I was super upset. My friend later called asking “Why do you always start shit” and I just said, I really don’t like him doing that. I don’t mean to start anything. Also, he drops the hard R n-word. Like holy. crap. I cannot stand people being racist towards ANYONE. So my question is do I have the right to be a little upset?