No. The books of Star Wars Episodes 1-6 are based on the scripts, not the other way around. Authors write the scripts while the movies are being created. Thus the book can be released a few months before the movie. Other books are new stories, not connected with the movies.