No, a legendary creature's death trigger does not occur if it's put into the graveyard due to the legendary rule, as the creature is not considered to have died in this scenario.