Morning after pill

Me and my boyfriend recent had sex, I took the morning after pill within the 24 hour limit and have to go back to the clinic in just under 3 weeks to have a pregnancy test however I am so scared because I don't want a child at a young age, is the morning after pill likely to work?