Peptic ulcers can come back if you smoke or take NSAIDs. If you need to take an NSAID, your health care provider may switch you to a different medicine or add medicines to help prevent ulcers.