Can od prescribe medicine?

DO? Did you mean a do, doctor of osteopathy? If that's what you meant, then yes they can prescribe medicine.
You mean optometrist. Doctors of optometry check your eyes and in all 50 states states they are allowed to prescribe eye drops and oral meds like glaucoma and eye infections.