can I get pregnant?

I'm not sure how this works so I'm seeking some help! Last night my boyfriend and I had sex. We didn't use a condom at first but then he proceeded on putting one on. I just got my period today. Is there a chance of me still getting pregnant? Should I buy plan B or should I be fine ?