Could taking medication for a yeast infection when u don’t have one cause one ?

Okay so my gynecologist said it looks like I have one but my discharge looked normal to me and there wasn’t a smell

I took it that night and the next morning my discharge was yellow and chunky.

???