In my opinion it is always a mistake to re-hire someone who has already quit because they were unhappy.
Surely that would depend on the cause of their unhappiness. If that had been removed perhaps they could be happy again. I've quit various companies because of the culture from the top. Once the top changed the culture changed.