Yes. The film was inspired by Dennis Lee's children's novel Labyrinth: The Story of Sarah and the Goblin King. The movie and book share core elements but differ significantly: the novel includes creatures absent from the film (talking fox, giant snail), and the endings diverge.