Sex and stuff

I know this is a stupid question so please don't give me hate, sex ed is dry in schools so I wouldn't know. Me and my boyfriend had sex a few times but we didn't do it enough for him to cum as it still hurt. I have no chance of being pregnant right?