Functions Of A Jury

Should a jury decide if a murderer gets the death penalty ? or is the justice system also a murderer for the death penalty.