Safe sex

Skye
I know this is going to sound dumb but, I haven't had sex before and wanted to know do you take the contraction pill before or after sex or is a totally different pill?