No, the treatment is only temporary. Your ulcers will heal completely by taking medicine but it is exclusively localized to the site of the ulcer. It will not prevent it from arising in the future.