Antibiotic during cycle

Kayla
I took my pill at the same time everyday but during the end of the first week I was perscribed Bactrim. Does my birthcontrol protect me up until then? We used condoms from there on out.