Believe or non belief in God has nothing to do with a moral code.
Moral codes are merely what a group of people agree is moral or not moral.
If anything, statistically, I would bet you a good lunch that atheists generally behave more morally than religious people, pound for pound.
The reason?? Their morality is derived from rational thinking about what is good, harmful, just and fair to other human beings.