Nope. The Secret is based on "The Science of Getting Rich", which came out a couple of decades before "Think and Grow Rich" and is by a different author entirely. It was while reading "The Science Getting Rich" that the author got the inspiration to write The Secret.
To confuse it further Hill wrote a book called The Law of Success, of which Think And Grow Rich was a watered down version. Henry Ford was pissed at Hill was revealing the secrets of the Upper Class and convinced Hill to water it down to Think and Grow Rich.
Going back to the other book, The Science of Getting Rich, on which The Secret is based, it itself was based on an earlier book still, that was about The Law Of Attraction - a very popular concept at the time, and all sorts of Esotericists, Hermeticism, Theosophists and the "New-Agers" of the time were writing about it in the late 19th/early 20th century. Hill also drew a little on the concept, but without crossing the line into pseudo-scientific esotericism.
That is good shit +rep
I'll have to look up The Law of Success, never even heard about it