Was the wizard of oz based on the wonderful wizard of oz?

The 1939 musical Wizard of Oz was based on the 1900 book The Wonderful Wizard of Oz.