surgery when pregnant

has anyone had surgery under general anesthesia when in early stages of pregnancy??

if so was your baby ok??