Well, that’s one explanation for ghosts. Another is that they’re a sort of “echo”, like a bad recording of something that happened there. That would account for the ghost stories where the ghost looked alive immediately after the person’s death, then became fainter and more transparent as time went on. There’s a British ghost from the 18th or 19th century like that that’s completely faded now.
Those kinds of ghosts don’t typically have stories about them interacting with living creatures or their surroundings, though.