If you have health issues

Is it safe to breast feed baby if doctor was going to do a surgery but didn't need too on the gallbladder but your still skeptical