Yes anxiety and stress can cause chest tightness which can sometimes feel like a heart attack.
When you're stressed or have anxiety your blood pressure can rise and when that blood pressure rises chest tightness can occur.
Also if the blood pressure isn't lowered then it can eventually lead to a heart attack so if you have chest tightness you should see your doctor about it if you're getting chest tightness during anxiety or stress.