Hurts during sex

Okay so sometimes when we and my boyfriend have sex it’s hurts.. tmi but around the hole? Lol has this happened to anyone?