Definitely the thoughts affect you, and this is where mantras are very useful. For thousands of years people have chanted these mantras, so when you sit and chant 'Om Namah Shivaya' for a few minutes, it somehow strengthens the mind and energy, and it keeps you away from depression.