No, he was not an atheist. He had some strange notions about the superiority of his race and that the Germans are born to rule the world. Anyway the atrocities committed by Hilter is no justification for committing atrocities in the name of religions and non-existent gods. Nearly 2/3rds of all wars fought by mankind were in the name of religion.