At least one version of Basic D&D- the Eric Holmes version from 1978- had good and evil as well as law and chaos.

It only had 5 alignments though- N, LG, CG, LE, CE.

Later versions of Basic went back to L, N, C, whereas Advanced D&D went with 9 alignments rather than 5.