What is the meaning of [Marry in haste, and repent at leisure]

If we get married quickly, without thinking carefully, we may be sorry later. And we will have plenty of time to be sorry.