Does multiple sclerosis affect your heart?

No. Ms effects white matter in the brain and spinal cord. It does not effect heart muscle.
Not directly. But two MS medications can cause heart issues, including Novantrone, which could result in a vacuolar cardiomyopathy, and Gilenya (fingolimod) which can cause a transient heart block in the first 6 hrs of use, but not longer.