Infections prevent pregnancy?

Does vaginal infections decrease your chance of getting pregnant in the long run?