Ectopic pregnancy.

Im only 4.5 weeks along but am having sharp pains on my left side and feeling extremely dizzy. Can my doc still diagnose and treat for an ectopic pregnancy if it's too early for anything to be shown on an ultrasound? Definitely want to prevent anything from rupturing.