Working out

So I was doing some zumba earlier and it was getting intense like it does and I started having heart palpitations. I had a few last week too so I cut back on the caffeine, figuring that's what had caused them. But I haven't had anything today but a big salad and some water. Not sure if this is a stupid question or not but does this happen to anyone else?