Is there a risk of pregnancy if you used a condom and pulled out after ejacualtion but the condom came off inside your partner's vagina?
Yes, there is a risk of that. All contraception methods are less than foolproof. Breakage and slipping off are two of the problems that make condoms less than 100 percent effective. If ejaculation occurred while the condom was still on, it's likely that most, if not all, the semen was captured by the rubber. If you didn't realize the condom came off before ejaculating, well, that's another story. In the future, grasp the condom near its opening before withdrawing.