Yes, if the fallopian tube has not ruptured and the pregnancy is in its initial stages, your doctor would give you an injection to remove the ectopic pregnancy.