Help me please

Ab

When exactly should I take ( morning emergency pill ) , can I take them right after sex, or should I wait till the next morning, it’s already 3am now..

when are the common side effects and how long does they stay?