Hunt for the Wilderpeople

A national manhunt ensues, and the two slowly bond while working together to escape arrest. Upon finding another hut, they encounter an unconscious, diabetic ranger. Ricky leaves to find help and runs into a girl his age named Kahu. She takes him back to her house and introduces him to her dad. Ricky stays the night and returns next morning to the hut where Hec was supposed to be. Ricky finds the place to be swarming with police, led by Paula. Ricky runs away. He later encounters Paula and Andy in the bush, separated by a ravine. Paula attempts to bribe Ricky, asking him to say that Hec was a sex offender. In return, she tells him that he won't ever go to juvenile prison. Ricky declines and runs away. Ricky catches up to Hec by remembering the survival strategies Hec taught him, and they continue their travels. After a traumatic encounter with a wild boar during which Hec's dog Zag is mortally wounded, forcing Hec to euthanize her, Ricky reveals he has been carrying Bella's ashes and originally planned to deliver them to ``where the earth wets the cloak of the sky,'' as per her wishes. They scatter Bella's ashes into a remote waterfall high in a mountain range. Ricky and Hec find a man living out on his own called Psycho Sam (Darby). Sam lets them stay the night. After five months of surviving in the wilderness and several close calls, they are finally caught following a car and helicopter chase, and Ricky accidentally shoots Hec. Hec gets remanded and Ricky is taken in by Kahu's family.

Question: does the dog die in hunt for the wilderpeople
Answer: yes