Sanctification and Marriage

It’s tempting to think that God got it wrong. Is it possible that the wise and sovereign Creator of the universe actually put the cart before the horse?