I mean they're not paying for anything so I doubt there would be anything in a contract stopping you from leaving.. but I imagine it would be quite awkward especially if it was for a different programme at the same flight school. In fact I imagine that the flight school may well block you from doing that (eg. by not letting you apply/interview for it).