'zactly!
That’s what the Catholic Church believes. Free-will comes in when it comes to our choosing not to sin rather than giving into our passions.
Jesus offers grace to all, but it is up to us to accept his invitation.
When the Catholic Church says we need works, she is saying that we have to choose to live as Christ wants us to with the help of his grace.