it can but i never say it's anxiety until after there's been a full medical exam to rule out anything physical. you should consider doing this and also take a look to see if you might be experiencing undue stress lack of sleep or anything else that might have triggered this.
is your heart pounding for hours a sign of anxiety attacks?