I have a question

What does it mean when you have some off and on ovary pains? My period is supposed to start soon but my bf and I had unprotected sex yesterday.