The animals can get pregnant in Stardew valley only if the pregnancy option is enabled on their status menu. First, you have to interact with the animal and give it affection. Then an icon to the right of the menu will appear that you have to toggle to allow pregnancy for that animal.