It's probably true in theory. Just like drinking coke is bad for you in theory. But for most people the effects would be negligible or non-existent.

I think if you baby was crying constantly all night you'd realise something was wrong and have it dealt with. But comforting them as soon as they cry is just training them to cry more.