This is terrible obviously, but if code is law and someone writes bad code and exploits that is it “illegal”?
The entire basis of even having judges, courts, etc is an acknowledgment that the “code” is imperfect and certain circumstances require human intervention.
Going without that is, well… YMMV.