Note that we are declared righteous from the outset:
Romans 5:1-11 NET
1Therefore, since we have been declared righteous by faith, we have peace with God through our Lord Jesus Christ, 2through whom we have also obtained access by faith into this grace in which we stand, and we rejoice in the hope of God’s glory.
9Much more then, because we have now been declared righteous by his blood, we will be saved through him from God’s wrath. 10For if while we were enemies we were reconciled to God through the death of his Son, how much more, since we have been reconciled, will we be saved by his life?