ve ibs will the surgery help with my IBS

I have been told I need surgery for my diverticulitis but I also have ibs will my surgery help with this also

in my case it did not help IBS. But is wonderful for diverticulitis