If something has a deterrent effect, it has the effect of preventing people from doing certain things. his belief in the deterrent value of capital punishment
A deterrent is something that prevents people from doing something by making them afraid of what will happen to them if they do it. They seriously believe that capital punishment is a deterrent