Not forever. Might be best at first to not drink it as the bubbles might be too much for a healing tummy, but personally I never had a problem drinking soda and I drink diet soda all the time.
ETA: if you like to drink ginger to settle your stomach, you might try ginger tea right after surgery.