Yes, cows produce colostrum while pregnant. Colostrum is a thick, yellowish fluid produced by the mammary glands in the last few weeks of pregnancy and for a few days after birth.
It is high in protein, antibodies, and other nutrients essential for the newborn calf. Colostrum helps the calf develop a strong immune system and fight off infections.