In the Wizarding World, death is a one-way door for the vast majority. Ghosts are the exception, not the rule—spirits who choose to remain tethered to the mortal plane, usually due to unfinished business, fear of the unknown, or sheer obstinacy.
When a witch or wizard dies, their soul departs for what the series calls "the next great adventure" (Dumbledore's phrase). No lingering, no haunting, no unfinished conversations. The Veil in the Department of Mysteries represents this threshold—those who've suffered trauma hear whispers from beyond, but cannot cross back.
According to Nearly Headless Nick (Order of the Phoenix), ghosts are those who:
They retain their personality, memories, and appearance at death—but cannot eat, touch, or affect the physical world meaningfully. They're "imprints," not continuations.
Rowling uses ghost rarity to underscore: Death is final. Acceptance is healthy. Clinging is tragic. Nick's regret ("I know nothing of the secrets of death, Harry... I chose a feeble simulacrum of life") is the series' clearest anti-ghost argument. The Resurrection Stone's tragedy—summoning shades who don't belong—reinforces it.
So no: your Hogwarts letter doesn't come with a ghost guarantee. Live well; the next adventure awaits.