pregnancy scan surprise?

Has anyone accidentally found out they were pregnant during a pelvic ultrasound or MRI? 
I'm not sure if I'm pregnant- I have had symptoms. But I have had a pelvic ultrasound and an pelvic MRI done. The last time I had sex was 16 weeks ago to the day.