I think it's a last choice, after diets have failed. My doc recommended one for me--mainly because of reflux--but I'm going to try to lose the weight on my own.
I suggest you learn as much as you can about it and if interested, get a referral to a weight loss doc and program. The one I've attended is very involved with lots of meetings, psychological assessment, etc.