Yes, the dog, named Sam, dies in the movie I Am Legend. She sacrifices herself to save the main character, Robert Neville, from zombie-like creatures known as Darkseekers.