Yikes! Hurt to have sex today

I just got off my period like the night before my boyfriend and I had sex. And weirdly enough it hurt-which is odd because it’s never been painful before. Is that normal?