do I need to eat yogurt while on antibiotics

I've been taking antibiotics for about 3 days in order to heal a UTI and everybody is telling me if I don't eat yogurt I'll get yeast infection I'm afraid. Is it true