This is a fantastic point!
The surgery is just a tool, and plenty of people have surgery and fail. Those that are successful have made fundamental changes to the way they eat.
OP: either way, if you want to be successful with or without surgery, you'll need to change your relationship with food. For you at your low BMI, that may be enough even without surgery.