It's true for any string instrument without frets or wind instrument without valves.
Of course, even with keys on the trumpet, you need to sound the correct harmonic interval using breath. Otherwise how could you get so many notes from three buttons!
I'm not sure what your question is about exactly. A slide whistle is the simplest version, I suppose?