It has been shown that finasteride, which is a systemic drug actually helps [1] with heart health.
It's not that fixing hair would improve heart health, but that on a systemic level improving heart health could prevent balding.
[1] https://pubmed.ncbi.nlm.nih.gov/25632043/