Married for insurance?

Has anyone else got married solely based on having insurance? It’s a panic thing for me I haven’t wanted to get married just because we’re having a baby, but now it seems like one of the only options.