While the traditional view of marriage before pregnancy is prevalent, I believe that pregnancy can be a valid reason for marriage.
Ultimately, the decision to get married or have children should be based on individual circumstances and what works best for you.