Yes, that's true.
4 seconds sound clip from the The Wizard of Oz (1939) movie soundboard.
You can hear this line at 00:38:05 in the Blu-ray version of the movie.
Quote context
[...]
- Why, if our scarecrow back in Kansas could do that, the crows would be scared to pieces!
- You're going to see a wizard?
- Mm-hm.
- Do you think if I went, this wizard would give me brains?
- I couldn't say. But even if he didn't, you'd be no worse off than you are now.
- But maybe you better not. I've got a witch mad at me, and you might get into trouble.
- Witch? I'm not afraid of a witch! I'm not afraid of anything! Except a lighted match.
- But I'd face a whole box full of them for the chance of getting some brains.
- Look, I won't be any trouble, because I don't eat a thing.
[...]