We've done with both our children. The eldest took went from 1h30 flight age 2 month to 4.5h aged 3 months, no issues whatsoever. In the beginning we used to simply make her drink a bottle while the flight was reducing altitude as it helps with ears.
With the youngest one we did a transatlantic just before she turned 3 months, and she slept the whole time.