I am planning to have unprotected sex with my BF for my BDay but doesn't want to get pregnant. Do you think the morning after pill would work?

I am planning to have unprotected sex with my BF for my BDay which is a week from now however I doesn't want to get pregnant. Do you think the morning after pill would work?