Flagyl should never be used to treat a yeast infection. In fact, using it might worsen the effects of a yeast infection.