Does chanting of holy name done while doing his wordly duties (like travelling , working at home , etc) gives any good (punnya) karma?

In this case one may or some times may not have attention over chant..

Is this kind of chant for holy name is useful?