We don't actually know if the person who wrote the Gospel of John had a written copy of Thomas because we don't know exactly when it was written.
Pagels, Elaine. Beyond Belief: The Secret Gospel of Thomas. Random House, 2003.
Sourced by: Quote.org sourced