Is it important to get married before baby

So not including religious beliefs or simply opinions, how important is it to be married before the baby comes. I'm 14 weeks pregnant and someone recently brought up my so and I should be married first, but what are the benefits or reasons to it rather than after?