All is well that ends well.

Meaning: A risky initiative is right so long as it turns out well in the end.