What is the meaning of [curses, like chickens, come home to roost]

Wrongdoers ultimately have to suffer the consequences of their bad deeds;also used when those who have wished evil on others are struck by misfortune themselves.