This is really a question for your surgeon. He will make that determination based upon location of surgery, duration of surgery and pre and post operative aneshesia and sedation used, if any.
If you are just having local anesthesia (and nothing to relax you like Valium), then you may be ok to drive. It depends on where your operation is on your body. If it is around your eyes, then you probably can't drive, as you may have eyelid swelling from the local anesthesia. If it is somewhere else, you may be able to drive. This ultimately should be asked from your Mohs surgeon. His/her staff should easily be able to tell you their office protocol.