From the many NDE reports I have read, none of the pain or misery gets carried over into the afterlife realm. In this heavenly realm, there is only bliss and indescribably beauty. People who are a car accident, for example, and are in excruciating pain, report that once they leave their body, and become a conscious awareness floating outside of their body, there is only calm and tranquility.
One point to be aware of though: in a few NDEs, some people do not arrive in the heavenly environment, but land in a nightmarish Hell. These hellish environments may appear as a dark abyss, a barren wasteland, a fiery pit, or other desolate landscapes.
The strongest feature of this hellish world is not the landscape, however, but the overwhelmingly negative emotions felt, such as terror, despair, abandonment, hopelessness, shame, and a sense of being utterly cut off from love, light and God.
But individuals arriving in the hellish realm are usually able to escape and get into Heaven by calling out for help or focusing on love. In some cases, the person does not escape hellish world on their own; instead, a divine being, an angel or a deceased loved one arrives to rescue them.
However, the NDEs involving Hell are a minority, only around 15%. And there does not appear to be any relationship between whether you were good or bad in your life, and whether you land in Hell during an NDE. It's just random. But it's good to keep in mind the escape techniques that people have reported allowed them to escape from the hellish realm during their NDE, such as focusing on love, or calling out for help.