At a minimum you should be off all narcotic pain medicines. Beyond that I would have to yield to the advice of your surgeon who knows what was done and what bleeding risks you might have in the early postop period should any sudden moves become necessary while driving. Thanks and best wishes.
Regardless of the type of surgery you have, you should not operate a motor vehicle while taking pain medication.