It is unwise to have unprotected intercourse while you have a yeast infection. You will just be passing it to and from your partner, which is not good for either of you. Yeast infections do not cause problems with fertility, nor do they cause ectopic pregnancies.