Note, I said "If the only reason someone doesn't do something."
If there are other reasons that he didn't do it, then it may be different. But if the only reason he doesn't do it is that he's afraid of punishment, I think that he's as morally bad as the guy who just went ahead and did it.