Notice this passage
Ephesians 2:1-10 You were dead through the trespasses and sins (2) in which you once lived, following the course of this world, following the ruler of the power of the air, the spirit that is now at work among those who are disobedient. (3) All of us once lived among them in the passions of our flesh, following the desires of flesh and senses, and we were by nature children of wrath, like everyone else. (4) But God, who is rich in mercy, out of the great love with which he loved us (5) even when we were dead through our trespasses, made us alive together with Christ--by grace you have been saved-- (6) and raised us up with him and seated us with him in the heavenly places in Christ Jesus, (7) so that in the ages to come he might show the immeasurable riches of his grace in kindness towards us in Christ Jesus. (8) For by grace you have been saved through faith, and this is not your own doing; it is the gift of God-- (9) not the result of works, so that no one may boast. (10) For we are what he has made us, created in Christ Jesus for good works, which God prepared beforehand to be our way of life.
Good works are a blessing of God's grace they are not something to be ashamed of nor to be avoided. Catholics teach that good works are grace given
426. What is merit?
In general merit refers to the right to recompense for a good deed. With regard to God, we of ourselves are not able to merit anything, having received everything freely from him. However, God gives us the possibility of acquiring merit through union with the love of Christ, who is the source of our merits before God. The merits for good works, therefore must be attributed in the first place to the grace of God and then to the free will of man.
427. What are the goods that we can merit?
Moved by the Holy Spirit, we can merit for ourselves and for others the graces needed for our sanctification and for the attainment of eternal life. Even temporal goods, suitable for us, can be merited in accordance with the plan of God. No one, however, can merit the initial grace which is at the origin of conversion and justification.