As a Brit, but not a teacher, I believe that your sentence, in its present form, could be considered as theoretically ambiguous, but would probably only be read, by an NES, one way i.e. :
"[The act/practice of] flying (i.e. driving) planes can be dangerous."
It could possibly, however, be read, by a non-NES, to mean:
"Flying planes/objects (i.e. rather than stationary planes/objects) can be dangerous."
This, as you can see, would have a totally different meaning.
Hope this helps
Student or Learner