That's right.
From a criminological perspective, you're wanting to optimize that general deterrent that relates to the likelihood of detection, and then if you are detected, the punishment you will receive will be certain, reasonably severe, and also swift.