No. I live in Canada where there is not such a punishment for decades and the criminality level is well under the average of countries where they have it.
Opinions differ, but, in general, societies that use capital punishment do not enjoy lower crime rates. Indeed, some evidence implies that frequent use of it actually increases crime.