Can you go on the pill when your not on your period ??

An also had unprotected sex 3days ago ?