BV then yeast infection

I went to the doctors today and got swabbed for a YI And BV I only had bc I took the first pill and a few hours later I had slight vaginal itching. Has this happened to anyone?