I think you did a wonderful thing. Anytime I am strongly moved to do something like that, or whatever other kind of good deed I feel I need to do, I do it, with one exception.
I no longer pick up hitchhikers or people walking along the road. It kills me to pass them by, but my DH forbids me to pick people up for my own safety and the way things are nowdays, I have to listen to him.
Any other strong feeling I get that I need to do something for someone, I do it if it's at all possible. I don't often have cash but if I see someone with the sign about working for food, and I feel moved, I will give that person food. I believe we are given that strong feeling to act for a reason, and we should listen to our gut instinct, as long as we are not endangering ourself or someone else.