In the D&D universe being good/evil/chaotic/lawful is a tangible fact that can be measured with the correct tools (spells). It's tied to the governing forces of the universe. So yes, in the D&D universe if one is so deeply consumed by hatred, anger and evil thoughts one might result as evil.