It doesn't apply to just death sentences. This case is based on the Apprendi decision from 2000, which stated that "any fact that increases the penalty for a crime beyond the prescribed statutory maximum must be submitted to a jury, and proved beyond a reasonable doubt."