The Catholic Church taught the same thing when I was growing up.
At least the nuns that taught me did-—it was mentioned over,and over,and over.
.
The Church of Christ taught that to me when I was growing up. I remember when Pat Boone strayed from that belief and embraced the Charismatic Movement. We were told he was going to hell.
Later I heard a joke about St. Peter giving someone a tour of heaven. As they walked by a closed door he said “Shh, that’s where the Church of Christ are. Thet think they’re the only ones here.”