Capital punishment has a deterrent effect.

Based on the paragraph above can we conclude that "Capital punishment is a deterrent to crime."?
yes