Can you get a yeast infection from medications?

Yes. Antibiotics can cause yeast infections.