Yes, both optometrists and ophthalmologists are trained to diagnose and treat common eye infections such as conjunctivitis (pink eye). Depending on the severity and complexity of the infection, either provider may prescribe topical or oral medications for management.