Yes it will hurt the tree. Surface roots aka Lateral Roots not only help to anchor the tree they are major suppliers of oxygen, water and nutrients and Sinker Roots, the ones that grow down come from Lateral Roots. If you spray paint them you will cut off their oxygen supply - literally suffocating the tree .. that's why it's not a good idea to dump soil on them to cover them.