The Catechism in Questions & Answers

367. Is church necessary

Yes. Church is necessary for being a Christian, because it is only there that we hear the word of God, receive the sacraments, and experience fellowship with God and with one another. As a whole, these elements are indispensable for attaining salvation. Without church this is impossible for human beings.

Salvation: see Questions 243., 248.