Finished the first year of my PhD program and just learned I'm pregnant. Looking for advice, help!

I'm 24F, my husband is 25, I just finished my first year of my PhD, and discovered that I'm pregnant. My IUD became misplaced, and now we're here. We weren't planning on kids for awhile, but the thought of an abortion now that I'm pregnant is really heartbreaking. It's still early so anything could happen, but I'm looking for advice and to hear from others experiences.

Are there any women here who got pregnant during their first/second year of PhD program, and how did you make the decision whether to keep it or not? How has it impacted your career? Is there anything you wish you knew, either in deciding to keep or terminate the pregnancy? I'm an emotional mess haha.

Update: I didn't get to make a choice, the pregnancy is ectopic.