Every time a person davens, learns, or does any good deed - it doesn’t go for naught. Everything helps, even though the kavana may not be there.