hmmm worried

My boyfriend and I went 2 rounds. On the 2nd time, He put on a condom but then took it off then put it back on is that ok will I get pregnant? He doesn't cum inside me.