Cramps after a short period and spotting

I had my period for about two days. After that I was just having dark brown spotting. Yesterday I started having light cramps. This has never happened to me. I had sex a week and a half ago. But he pulled out. Although I have heard that pre cum can also get one pregnant