Do I have a right to be mad about this?

So I went to the fireworks in my town the other night with my boyfriend and I came across some old friends and wanted to say hi to them. My boyfriend got mad at me about it. One of my friends didn’t like the way he was acting about it so she called him out on it. He got mad at me for not “standing up” for him and he called me a bitch to my face and stormed off. He said he didn’t mean it but I don’t know it seems kinda controlling. Anyone ever in a similar situation or have any advice?