According to Freakonomics it does. But the deterrence isn't the only aspect important to the matter. The risk of false positives alone is enough to forget about possible deterrence value. And that's not even about the ethics of the matter.
I absolutely agree that the risk of false positives is enough reason. I can't understand how people think that can be acceptable under any circumstances. I'm just not sure that the death penalty is not a deterrent.