Sex on period

Is it just me or when you're having sex on your period does it kinda hurt sometimes? It seems as though it only happens every now and then and only when he goes deep. Does this happen to anyone else?