Is it possible to create a method of capital punishment that would actually deter murder – for example, televising executions?

Is it possible to create a method of capital punishment that would actually deter murder – for example, televising executions?