If you fall ill before the flight, you can request the airline to cancel your flight, though you may have to provide some medical documents to get the amount you have paid for the ticket reimbursed. If you have a history of illness, you must let the airlines know about it and despite everything if you fall ill during the flight, the flight attendants and the pilots will do what is best for you.