Yeast infection?

Yesterday I looked down there because it kinda hurt to pee but that’s normal for me it also it looked like a yeast infection because of the white, it wasn’t discharge it wouldn’t wipe off. I went and got medicine this morning on the way to work and I looked down there again to see if it was worse and it was all gone. Should I take the medicine still?