It may be possible, but definitely not safe.
Meds given can slow your reflexes for hours after until they are cleared from your system. If you show up with no ride, you will likely be denied surgery. If you get into an accident driving when you shouldn't, it may be considered driving under the influence. Give yourself a day to recover and get used to your pain meds.