No. "Over the Rainbow" was written for the 1939 film by Harold Arlen (music) and E.Y. "Yip" Harburg (lyrics).
L. Frank Baum’s 1900 novel The Wonderful Wizard of Oz contains no songs. The song became inseparable from the story but is not in the book.