An STI or STD can lead to serious pregnancy complications, including miscarriage, stillbirth, and birth defects. Some of these problems may be seen at birth; others may not be discovered until months or years later. Therefore, it is important to get regular STI or STD testing early in pregnancy until close to delivery.