Yes anxiety can be an important cause for your complaint.
Also do CBC,
Thyroid profile to rule out other causes of Tachycardia.
Next Steps
Consult an M.D.Medicine physician/Cardiologist with above reports for further evaluation.
If anxiety is an issue, then counselling by Physician & doing meditation/Pranayaam, regular walking will help you.
Health Tips
Avoid smoking, alcohol, excess tea/coffee.