Period and sex

So about 3 weeks ago I was on my period and I had one of those off days where I didn't bleed or spot so I thought I was off my period. I decided to have sex with my boyfriend (unprotected) and he pulled out, and the next day i started spotting again. I havent gotten my period yet, but I'm nervous due to the end result and I was just looking for some feedback??