Is this normal?

I've had my IUD in since December 2015. And I've been feeling pain while my boyfriend and I are having sex. It hurt a lot at first. Over time it would only hurt in the beginning and calm down. Is that okay?