Capital Punishment

In a perfect, or near perfect, judicial system is capital punishment a good idea?