Mostly an active transgression of a Torah law entails punishment, but there are times when the transgression can be unwound thereby removing the need for punishment.
Source Sheet