Can I get pregnant?

My period is in 4 days and I had unprotected sex with my boyfriend. Can I get pregnant? And Should I take a morning after pill?