Good luck with the surgery. When I broke my hip a ten years ago, I gave up cigarettes cold turkey for the duration. Which wasn't easy, but by not being able to walk, it made it a tad easier. The nature of the break was a total shearing off of the ball joint (they called it the Bo Jackson break), so they wanted to make sure the repair took without the cells of the bone dying, causing further problems. The surgery took and bone density is where it's supposed to be. I guess with no control group of people that continued smoking, it's impossible to know whether giving up cigarettes for three months helped or not, but continuing to smoke wasn't worth the risk. Many claim that smoking a pipe isn't addictive, so maybe laying off the pipe for a while is easier than cigarettes. It's probably not pleasant, nonetheless.
Good luck with the surgery. I pray for a speedy recovery.