i have an infection

can having a bacterial infection for 4 months before realizing ... can it stop chances of conceiving?