Birth control

Yesenia
So I had my obygn appt and the put me on birth control? I've been spotting in between periods how do u get pregant if ur preventing it?!