pregnancy

Okay last week I had sex like he didnt ejaculate inside me but outside while wearing jeans. I got scared so took the emergency pill. I had my periods on 11th dec but yesterday i was spotting. Is it because of the pill or am I pregnant?The discharge is brown in colour.