morning after pill HELP

i had protected sex with my boyfriend last night  but still went to the pharmacy today to get the morning after pill! i know you're supposed to take it after unprotected sex but i was just wondering whether i still could take it just to be 100% sure even though we used a condom and it was protected