Sure. But it more has to do with what we do with Jesus. Putting our faith in Him and abiding in Him like a servant to a master or disciple (student) to a Rabbi (teacher). Gathering with believers is commanded but not related to salvation. Salvation is
Ephesians 2:8-9
New International Version
8 For it is by grace you have been saved, through faith—and this is not from yourselves, it is the gift of God— 9 not by works, so that no one can boast.
Faith in Jesus Christ.