Spotting

(Me nd my boyfriend had sex nd came inside me) “I take my pill”. nd after i take my pill 1-2weeks i had brown spotting and a small amount of blood. (The brown discharge is consistent of showing up) im worried and bothered. Is this normal? Of taking a pill?