Does someone go to hell because they believe they've done something sinful when they haven't, and do bad people go to heaven because they believe they have done nothing wrong?
It comes down to what the listener believes. For me, I tend to think when listening to stories like this people get what they think they deserve, not what popular thinking would impose on them.
Terry Pratchett(all hail)'s Discworld books have quite a number of different characters dying and going on to their own afterlife, depending on what they, or their general culture, believe but the funniest description of the perils of going around believing
in a god was about missionaries:
given that what someone thinks is going to, and what should, happen to them when they die can actually make it true
it was therefore vitally important that on no account should missionaries be allowed to get to 'primitive' tribes, or the tribespeople might end up in hell, rather than the more pleasant afterlife that an innocent mind would assume existed.
Missionaries must also, therefore, be shot on sight just in case they are about to tell you something you are much
better off not knowing.