cramping

So I just now started cramping and my period ended last Tuesday. My bf and I had unprotected sex the rest of the week. Does anyone know why I might be cramping?