Sex and period

Had sex on 4th day of period can I get pregnant? He came in me. Can I take next day pill?