Erythromycin, ophthalmic gentamicin, ophthalmic tobramycin, and polymyxin B are considered safe during pregnancy (10). However, you can use them only if the prenatal care provider prescribes them for an eye infection.