Yes, nerves from the brain to the heart can influence heart beat (and other features like heart conduction and blood flow to the heart itself) in response to stress and exercise. Heart transplant recipients lose these features. They make poor marathon runners :)