Condom?

When me and my boyfriend were having sex last night the condom came off when he pulled out of me but he then said it was fine and put it back on (he hadn't finished yet) and continued.... Did he do the wrong thing? I'm fertile in 2 days and am sixteen. Plan b isn't really an option as I wouldn't be able to get my hands on it.