Yeast infection medicine

Hey guys i had a question. If i take a pill for my yeast infection and wait till it's a little bit better to have sex, can i get pregnant when taking the medicine? I've heard it can weaken latex in condoms is this true?