Yes. Pain of any kind can make you feel nauseous, and pain from ulcers is no different. It would be unusual for nausea to be the only symptom of an ulcer, but it is possible.