Hi griff,
Thank you for your question. The best thing I can tell you is to discuss this with your doctor. There is a theory that when taking pain relievers for something other than a migraine attack, it won't create rebound headache. But I would strongly encourage you to discuss this with the doctor before your surgery.
Good luck with the surgery!
Nancy