Yes it can if you pick the right partner.
What makes you think it can't?
I believe that a "right partner" does not exist. There will always be incompatibility to a certain degree and that will cause conflict in a relationship.
A marriage can bring happiness if you are happy with yourself and is willing accept the flaws in your partner. If this is the case, then happiness is the result of you and not the marriage itself.
I seriously do not get marriage at all. It's like... "Is this the line to lose half my shit?"
Can't you sign a paper when you marry with separation of goods? Like, in Brazil, when you marry you can choose to sign this paper that says all the properties and belongings under your name will stay under your name after marriage. Because of this, when you get a divorce, you keep all the goods under your name. Then, another clause states that if you want, you can add your partner's name to any property you have or you can choose to add them to any future property. In this case, a divorce would result in a 50% split.