Not entirely, but that is one aspect.
Your understanding of Catholicism is NOT accurate
You are confusing works of law and good works. I’ll respond after I get some sleep.
I don’t want to mischaracterize what you are saying, so I’ll state the Catholic belief.
Paul teaches an inner change of person, which is an (Infusion) of righteousness.
For if, by the transgression of one person, death came to reign through that one, how much more will those who receive the abundance of grace and of the gift of justification come to reign in life through the one person Jesus Christ. (Rom. 5:17)
We do not receive Christ’s personal level of righteousness (which is impossible), but we are made righteous on His account by God’s mercy and the Lord’s work on the cross.
For just as through the disobedience of one person the many were made sinners, so through the obedience of one the many will be made righteous. (Rom 5:19)
The word made in Greek is “katestathesan” which refers to a real, actual, ontological change in the person’s soul. We are not just declared righteous, but are actually made righteous.
**So whoever is in Christ is a new creation: the old things have passed away; behold, new things have come. (2 Cor. 5:17) **
For neither does circumcision mean anything, nor does uncircumcision, but only a new creation. (Gal. 6:15 )
We are not just the old creation that is covered up. The old has passed away, and behold, the new has come.
**All of us, gazing with unveiled face on the glory of the Lord, are being transformed **into the same image from glory to glory, as from the Lord who is the Spirit. (2 Cor 3:18)
**Therefore, we are not discouraged; rather, although our outer self is wasting away, our inner self is being renewed **day by day. (2 Cor. 4:16 )
and have put on the new self, which is being renewed, for knowledge, in the image of its creator. (Col. 3:10)
justification is ongoing and changes in degrees throughout one’s life. It does not happen all at once, and is not an external declaration. Justification happens every day, and concerns our inner nature.
Peace