No, codes do not make people lawful. Chaotic people can have codes too. Lawful means one works within a system and society of other beings with the belief that rules are for everyone, not to be broken when convenient. Chaotic means you value personal freedom and choice above the restrictions of society.
Dexter is thoroughly NE.