Yes, medication can affect heart rate. Some medications can cause an increase or decrease in heart rate as a side effect. It is important to discuss any medication concerns with a healthcare provider.