I'm going to say yes, they can.
I saw a short horror film about this exact scenario a few months ago.
There's a Wattpad Novel, "Running with Scissor", where the mc's body and soul are separated by some sort of spell and he has to recover his body before midnight or the spell becomes permanent. It's pretty good absurdist humour reminescent of The Hitchhiker's guide to the galaxy.
I love this idea.
Just make sure at least one member of the party is in a compromised position when they bite it. Example: not wearing any pants.
Orel! Think of the decency issue!
Yes. Depending on the fiction, if the ghost isn't a soul but instead a psychic/spiritual remnant, both can happen and the soul can have gone to the afterlife too. You can do a lot with fiction.
Story pitch: Soul gets to leave hell for one night to convince someone to put down their zombie corpse so their ghost will demanifest and they can finally go to a better afterlife.
mc chris has an album about this
Spooky ๐ป Halloween ๐ Dark ๐ฆ Horror ๐ช Memes
In this /c/, we call home
Everyone hail to the pumpkin song!
All year round!