Going to a church is not a guarantee that people feel less lonely.