I had them before my surgery and then shortly after. I think the reason I had them after was because I was barely able to eat and drink before surgery, and then didn't realize how much I needed to drink after.
As long as you drink enough water you should be ok.