Should you travel by train or airline with an infant?

It is generally considered safe to travel on a train or airplane with an infant. Of course, the infant does not understand that other people are around and may be inconvenienced by it acting like a normal child.