No.
Page 15 of the rulebook:
"A creature cannot gain or lose the Flying trait in the middle of an attack. For example, if a creature gains Flying in the middle of an attack, the entire attack is still resolved as if the creature did not have Flying, and the Flying is gained after that attack is complete."