No, not necessarily and not always. Sometimes a house may take a long time to sell simply because of a bad market, or a bad neighborhood. Or maybe it's just a piece of crap house... A lot of people don't believe in ghosts and would be likely to buy the house, if they really liked it. But no real estate agent is gonna tell some perspective clients, "I have to tell you, this place is haunted." So how would buyers know a place was haunted? State laws don't require sellers to disclose a ghost.
On the other hand, if say, five people were murdered by a drunken father or by drug dealers, there's nothing you can do about that.
And here's a fun fact: most places can go years, even decades, with nothing supernatural happening there. But people who have latent or active psychic abilities can act as a fuse or a trigger for hauntings. If you have a really haunted house, about the only thing you can do is call in a priest and have an exorcism; see if that works... Or advertise it as being haunted and see if somebody whose interested in such things would buy it. Otherwise, keep your mouth shut and let whatever buyer who wants it, et them buy it.