Will I get pregnant after taking the emergency pill within 24 hours of having sex?

Will I get pregnant if I take an emergency pill within 24 hours?