In that situation I would have gone with a straight "yes", nor would I feel myself to have lied. I'd consider it a case of choosing to speak figuratively rather than literally.
I don't think that what you did say was misleading or that the child would have, in essence, misunderstood it. In fact, under the circumstances I think it was a very well-expressed, even a beautiful, answer.
Previous thread
If it's worth saying, but not worth its own post (even in Discussion), then it goes here.
Notes for future OT posters:
1. Please add the 'open_thread' tag.
2. Check if there is an active Open Thread before posting a new one.
3. Open Threads should be posted in Discussion, and not Main.
4. Open Threads should start on Monday, and end on Sunday.