Do you have any co-morbidities? Diabetes, sleep apnea, and things like that? If yes, definitely do it.
If no, seriously consider whether you have tried everything first. Have you had a nutritionist work with with you? Have you had a personal trainer? Have you worked with a counselor to see if they can help you deal with whatever is making you over eat? I am not saying you not to do surgery, but make sure you HAVE tried all options first. It IS major surgery and with the right support, you MAY be able to avoid it. Or not.
That said... I had a low (under 40) BMI. I started with a BMI 38.9 and co-morbidities. With nutritionist support, my BMI dropped quickly (but I kept it above 35 to qualify for surgery because of my co-morbidities). I have followed the program, and I am now below my goal weight. Best decision I ever made.
If you have a BMI under 35, you may have difficulty finding a doctor to operate unless you pay out of pocket. It is expensive. But if you do have co-existing conditions, you may qualify for insurance to pay.
I can't say that I recommend someone who doesn't qualify because their BMI is under 35 have surgery. But that is me and my personal opinion. You do what is best for you. And if surgery is what you believe you need to do, then go for it. I will say though, definitely take your weight and get it under control! Just know, if you DO have surgery, you will get ALL SORTS of unsolicited opinions and advice lol. Don't listen to the naysayers. Just listen to your research and your doctors.