help please

hailey

i had unprotected sex a few days before july 3rd. i’m on the pill and he didn’t pull out but i’m on my last week of pills (the period week) today’s my 4th pill and i haven’t started my period yet but my stomach is cramping up and when i pee, i wiped and there’s brownish stuff. is that spotting before my period?