Thanks for the query
Yes emotions does affect heart beat.
Emotions triggers the SA node to send more signals to the heart muscles thus increasing the heart rate
Google search fr an article where they have researched the students heart beat while they were writing an exam
HAve a healthy life