Of course. If you think you are getting a yeast infection then you should be on something to prevent implant infection. Anytime you take an anti-fungal medication you should be under the close supervision of a physician to check your liver which can be harmed by this class of medications.
can happen if you are susceptible to this following use of antibiotics. But its always better to let your surgeon know and get a prescription from him/her as one pill is much easier then the other methods of treating a yeast infection.