Pregnancy complications, like high blood pressure and gestational diabetes, can indicate a higher future risk of heart problems.