Yes, video games can definitely affect your heart rate.
When a game gets intense—say, a tense boss fight, a close multiplayer match, or a horror scene—your body's stress response kicks in. Adrenaline rises, and your heart beats faster to prepare you for action. Studies on gaming and physiology have noted this kind of arousal during exciting or high-pressure moments.
The effect is usually harmless and temporary, similar to the rush you'd feel during a thrilling movie or a sporting event. If you ever notice discomfort, though, it's always smart to take a break.