Yes, when the heart cells do not get a sufficient supply of blood oxygen there can be pain (angina) as you describe as well as pain to the back shoulders. Usually, the lack of a good supply of blood to the heart is caused by occluded vessels, heart valve regurgitation, etc.