Wondering

If my vagina has an infection like yeast or uti or something, could I stil get pregnant?