I'm not so sure about that. It could be, I'll grant, but it could also have been inspired by any number of other similar preexisting stories. The episodes sites such a mythological story within itself, self-referentially as a plot point.
The
UFO episode "Survival" from 1970 has a similar idea of two aliens who cannot communicate learning to cooperate, although, if you stack it up against TNG episodes, "Survival" plays much more like "The Enemy" than "Darmok."
I agree. Full disclosure - for that it's one of my favorite TNG episodes.