Herpes and a yeast infection can occur at the same time, but one does not cause the other. They are completely different infections. Herpes is an STI, so it is possible that you contracted it from your boyfriend. Are you suffering from vaginal symptoms?