Antibiotics can help prevent a serious heart infection called infective endocarditis, especially if you’re at high risk due to your heart condition.