It's generally recommended to avoid flying immediately before or after surgery. This is because flying can increase the risk of surgical complications. Recommended waiting times vary, from 1 day for minor surgical procedures like cataract surgery, to 10 days or more for complex operations.. If you’ve undergone a hip or knee replacement, you may be at an increased risk of blood clots while flying and may be advised to wait longer.