Bf purposely ignores me when he gets mad at me?

My boyfriend has been ignoring me when he gets mad. I told him I didn’t want him to sleep over tonight because I’m tired and don’t feel good (I’m getting a head cold) and since he’s mad this morning he said he’s not going to talk to me for the rest of today. Should I just break up with him?