Yes you can feed them before a long flight. That's no problem. Try to give them enough time do process the food (specially grain) before the long trip starts. During the trip they will be fed Hay as well as water constantly so the horses stay happy and hydrated.
Check this blog out!