Possible Yeast Infection

I know this may sound silly but that's why I'm asking lol. Can you get a yeast infection from ibuprofen 800 mg?? I got my back upper molar taken out last Thursday and I've taken a lot of them and now I have a yeast infection. I haven't had sex in over a month so it can't be from that. Again, sorry about the silly question!