Surgery means anesthetic. Are you having an epidural or general anesthetic?
If general anesthetic, no, even I wouldn't smoke! Actually, Mayo Clinic prefers that you NOT smoke for 10 full days prior to undergoing general anesthetic. Anesthesia reduces your respiratory process until it wears off.
Some people are like Slinkies... Not really good for anything, but they still bring a smile to your face when you push them down a flight of stairs.