Is ethics a specialized branch of criminal law?

No, Ethics is a branch of philosophy.