Marriage is a gamble no matter how well you think you know your intended. It's the biggest leap of faith a person can take IMHO.
esDH and I were married for close to 38 years before his drinking spun out of control. I know someone who was married 15 years before she discovered he was cheating on her.
The remedy? NEVER become financially dependent on a man and ALWAYS keep your own support system intact. And ALWAYS keep on top of what's going on with family finances. These things aren't just for divorce, they're also good things for the possibility of widowhood or a spouse losing a job or becoming disabled.
So you either need to keep working after you have a child or you need to have the type of qualification that will easily allow you to re-enter the workforce after a period of not working. And it's a good thing to stay within a reasonable distance from your family or close friends or to have a 'path back', which always seem to fall back on having a job that's easily transferred to another area (big company, civil service) or that is in demand in many areas (nursing, teaching, etc). And never let finances default to one person. Even if you choose to let a DH pay the bills, always be sure you could step in any time and take over (or separate them). And that you are knowledgeable about how & where you are planning for retirement.
Would you buy a home without homeowner's insurance? No. Do you keep yourself prepared for bad weather or a natural disaster? Sure, have a few torches, batteries, maybe a battery radio and some food that doesn't need cooking. So why wouldn't someone keep themselves prepared for life's 'eventualities'.