What I agree with Catholics is the importance of Church... Not only the Body of Christ, but the actual and physical coming together of people in one place, with leafership and a sense of order.
But no... That is not righteousness nor factors into righteousness. We are righteous because of Jesus's sacrifice.
Church is important. Its where the eagles gather, its where two or three agree in his name, its where we are odf one mind and one accord and its where we get faith... But that is not where we are made righteous.