Pregnant while taking antibiotics


Hello! I had an UTI last week during ttc...I did a hcg blood test around 4-5 DPO and came out negative (1,2), So my doctor gave me AF due is today and I did a pregnancy test and got a faint line..i am Terrified about the antibiotics I is possible to be pregnant after all of this? Is there anyone else who had/has this problem?