Inhaling steam can provide some relief from the symptoms of cold and cough. Steam helps to loosen the mucus blocking the breathing passages, making it easy to expel the mucus through cough, and ease breathing. So, yes in a way steam is good for chest infection, but it doesn't cure it and neither does it work for extreme cases.