Advice please

L

My period was 9 days late last month and it was usually regular but I'm having some cramps and my periods not supposed to start until 13 days and I did have sex but 100% sure not pregnant, is my period trying to regulate itself ?