If you become a Pilot of the Army/AirForce etc i'm pretty sure you are signed up for a 10 year contract. However, yes you will get all expenses paid flight training (provided you can pass the tests and medical*).
*From what i understand you need 20/20 vision too.
Remember at the end of the day...