That question is too vague to answer. Sometimes yes but often no. There are quite a few different types of corneal ulcers.
I went to see ophthalmology, at first my doctor told me it's scratch by contact lens and bacteria get's into my eyes cause ulcer. She prescribe me a ciprofloxacin hydrochloride ophthalmic solution, 0.3% and Erythromycin Ophthalmic Ointment USP, 0.5%(sterile) apply ointment 1 times a day to use,follow up with her everyday. I used both prescription for 5 days, but then I switch to another ophthalmology office, he said change medication don't used the medication that previous Dr prescript to me. Start using Tobramycin and Dexamethasone Ophthalmic Suspension USP, 0.3%/0.1% (sterile) use 3 times a day and follow up with him after a week. I already used this medication for 2 days already but i still can see white dot mark on corner of my eye ball, and still can feel pain if my eyes get tired
Don't wear your contacts! Both treatments were probably appropriate at the time they were started. The first was for a possible bacterial infection on the eye and the second is for the white spots (infiltrates). It takes weeks to months for the eye to get back to normal.
You should discuss glasses or refractive surgery (lasik) as an alternative to going back to contacts which are the likely cause of your problem.