bacterial infection and infertility

Anybody know if a bacterial infection (not an std) can cause infertility? I want a baby (not today but one day) and im afraid this infection will have prevented me from being able to have one one day...anybody know more about that? Thanks :)