Cum 5 days before my period

So I had unprotected sex and the guy cummed in me and my period is in four days from now , and now I'm experiencing cramps at the moment ,what's the cause and is it possible for me to get pregnant 5 days before my period ??