No, I don’t agree with your parents advice as it is presented here.
Marriage is sometimes hard, sure. Sometimes monogamy is hard. But just because you put in hard work to stay together doesn’t make it more valuable.
If you are constantly struggling to stay together, that’s a bad sign. Not every relationship is worth saving. In fact, most aren’t. Most relationships end.