Help! Please!

If a doctor says that you are 3 weeks pregnant does that mean that you had sex three weeks ago?