Is there a higher risk of infection for dental implants in patients with systemic conditions?

How do systemic health issues, such as heart disease or diabetes, affect the chances of infection or implant failure in dental implant surgery?