Confused about who the dad is

Samantha

If a doctor goes of when you had your last period but you only had sex a day after would you be pregnant by the guy before or after your period?