Absolutely. Moorcock took his inspiration from Zoroastrianism, which goes back to at least several centuries BCE, but there are similar concepts dating back even earlier.
I dunno about all that, just that I now have bits of Hawkwind's
Chronicle of the Black Sword stuck in my head.