Oh no, my half remembered example of overly violent reactions to breaking moral traditions might not be literally accurate!
Did religions include extremely harsh punishments for breaking moral codes? Yes. That is the point even if the details aren't exactly right.