That's the way some people have interpreted it. Michael Medved I think. No one can know for sure. Allegories can be tricky.
Like you said, allegories are tricky. I see the movie as dealing more with a rejection of modernity and a return to simpler times. A pretty common theme in literature, I guess.