Answer:
Yes, ethics are actually the very foundation of the criminal justice system. They're what helped us, as a society, develop the moral reasoning we use, define criminal activity, and deem acceptable as punishment. This in result if there is poor ethics it can lead to criminal behavior.
-I hope this helps have a great day!