Flying with baby

Has anyone ever flown with a newborn? I may have to travel shortly after he’s born and I’m wondering how early it’s okay and any experiences.