With steel, dented frames can be rideable, provided it's aligned. Stress cracks are another story. If you want to be really sure, bring it to your LBS, and the should be able to give you a quick assessment.
If it's aluminum or carbon with a dent like that, I would be more paranoid.