Yes, it will do. The idea of good will be in their heart. That is enough. Good, God, love, all are the same thing. If the person keeps continuously thinking of any one of these, it will be enough.
All meditation is for the purpose of keeping out all other thoughts.
In fact none of these terms has any meaning except in so far as the opposite to it exists. But that does not mean that when you come across anyone who is less happy or more miserable than yourself, you are not to be moved to compassion or to seek to relieve him as best you can. On the contrary, you must love all and help all, since only in that way can you help yourself. Since everyone is one's own Self, whoever does whatever to whomever is doing it only to himself. Man goes in quest of joy and searches in the external perishable objects for his happiness.