Sometimes we can help people like that, sometimes we cannot. It is certainly noble to try, in my opinion. Keep looking out for those you can help, in whatever way that you can.
Maybe the real way that you helped that particular man was simply to renew his faith in human beings, or in God? Every little interaction with others, which we can keep positive and uplifting, will tend to their good and ours.