No.
There is a similarity, although Lessing comes down on the side of religion. He was far less pc than we are, but typical for his day.