Yes absolutely!
Sometimes doctors even anticipate and consider it normal.
I remember once when I had a viral fever (it's a fever that doctors cannot explain and blood tests show nothing) I visited my GP of that time - a woman in her late 30s and rather nice looking.
Lying on my back on the exam table, while she placed her stethoscope at various places on my chest, I could feel my heart pounding.
She went on to check my blood pressure with an electronic device that also read out my heartbeat.
She didn't make any comment about either my BP or heartbeat.
I asked her if either my BP or pulse rate was higher than normal and
She said: No, should they be?
I said: I feel so.
She asked: Why?
I said: Well...because I am nervous and can hear my heartbeat - rather heart-thump - loud and fast
She smiled and asked: What's there to be nervous about? It's only a viral.
I said sheepishly: Well, you could decide to give me some injections
She smiled: You want me to?
I said: Only if necessary - I'm afraid of needles!
She laughed: Nah. No injections for a viral unless you can't swallow tabs.
I said: That helps. I can swallow tabs and can do without the injections thank you very much
She laughed again: Just take these tabs to keep the fever down. You'll be okay in 3-4 days. Come back only if the fever persists beyond that. Or other symptoms like vomiting or chest infection show up.
I took the prescription and left. She was right, I was okay three days later.
Possibly that combination of fear of the unknown disease, anticipation of the pain of a likely injection, the helplessness lying on one's back and submitting to a pretty woman - albeit a trained professional - all make good reasons for the heart to go bumpity bump!
For all healthcare professionals: Respect!
But my uber-creative, constantly travelling mind just sets my imagination on fire...