Im with ethel and red on this, You normally are at risk of pregnancy if you have unprotected sex around ovulation, depending on how regular your cycle is, that is not to say it cant happen at other days in your cycle.
2 days before your period is probably a lot safer a time than earlier in the month, If you are worried take a test but its highly doubtful. There is a lot to said for contraception!!