Yeast Infection help!!!

I told my doctor I thought I had a yeast infection so she prescribed me the one pill but she also said that it could be an STI. but I only had unprotected sex once 4 months ago, so I don't think it's that. It's the third day since I took the pill and still itching. Are the symptoms of a yeast infection supposed to be subsiding or does it take longer?