I dont want to get pregnant

I'm about to have sexual intercourse with my boyfriend in a few hours but he doesn't have a condom and I don't want to end up pregnant. What should I do? When he is about to go inside and he pulls out, can that prevent by helping me from getting pregnant?