Welcome to HCM
It depends on which part of your cycle he had intercourse with you. It's not uncommon to have pregnancy
by withdrawal method but you need to confirm after 10-12 days and you can wait for your next period. You may consult your Gynaecologist and take an Emergency contraceptive pill
for precaution this time. Please use Condom next time as withdrawing penis before ejaculating can also cause pregnancy.