Can a bird lay eggs while it is flying?

Well they lay about 8-40 eggs

Yes - I think they can. One laid an egg from a great height on our car windscreen this evening as it flew over.