The digestive system continues to develop throughout gestation, but it may not be fully mature at the time of birth, especially in premature infants. The third trimester is crucial for the development of intestinal lining, enzyme production, and gut motility. Therefore, babies born before this period may have an underdeveloped digestive system.