Did I make a selfish decision?

I chose to go through with my pregnancy after 3 months of dating. I knew there were risks of me possibly losing my financial stability and my relationship. My child's father wanted me to really consider having an abortion. I tried but I couldn't wrap my head around the thought. Here I am a year later and everything that could go wrong, went wrong. Did I make a selfish decision to keep my baby? Was I wrong?

Edit: Let me add that I did ask him his opinion on the situation. He wasn't forcing the idea of having an abortion on me.