Dumb question ectopic pregnancy

I am now 12 weeks. I had my first appointment last week. The doctor measured my uterus and also used a mini portable machine where I saw the baby and the heartbeat. My question is this she would of seen it if it was an ectopic pregnancy, right ?