You can take the Plan B pill up to 72 hours after unprotected sex. It's better to take it sooner rather than later.