If you have the procedure under local anaesthetic (in other words you were awake during the procedure), then you can usually drive home afterwards.

If you have the procedure under sedation (asleep at the hospital), then you are not able to drive home after the procedure and you can not, by law, drive for a period afterwards.