Yes, your heart rate can fluctuate while playing video games, particularly during moments of surprise or intense effort.
When something shocks you or you're concentrating hard to accomplish a difficult task, your body's natural fight-or-flight response can kick in, nudging your heart rate up. It's a normal reaction to the excitement and tension that games can create, and it usually settles back down once the moment passes.