Wisdom teeth

in a few weeks i will be getting my wisdom teeth removed at 10:30am and the dentist said it'd be a 3 hour surgery so get out around 1:30 and i'm supposed to take my pill at 12pm. What should i do in regards to taking it?? will i be able to swallow it after the surgery and how will the medication affect my pill -if anyone knows lol