Yes, the film is loosely based on the children's book "Chitty-Chitty-Bang-Bang: The Magical Car" by Ian Fleming .