Surgery might work for obstructive sleep apnea, depending on the actual cause, but it will not work at all for people like me who suffer from central sleep apnea. With central sleep apnea the windpipe isn't obstructed, your autonomic-nervous-system just doesn't breathe sometimes.
https://en.wikipedia.org/wiki/Central_sleep_apnea