Pregnant after period? Help

I had sex with my boyfriend a day after my period and he came in me bc we were just being stupid....how low are the chances....problem is my periods are super irregular and so I was supposed to start birth control tomorrow but what if I'm pregnant? Is it safe to take?