It depends what is meant by “allegory”. Read on:

http://www.theimaginativeconservative.org/2016/05/lord-of-the-rings-allegory.html#comment-345941