Can divorce be good for a relationship?

Can divorce be good for a relationship? I think that in some cases only a serious failure can help us better understand our actions and their consequences.