Emergency contraception

Can you take a "morning after" pill (plan b for example) as soon as 1 hour after having unprotected sex? Or is it too soon?