Yes, your clothing shields you from the Sun!
Sun protective clothing is specifically designed to block out UV rays and is often made from fabric that has a UPF (ultraviolet protection factor) rating. This rating indicates how much UV radiation a piece of clothing can block, with a higher number meaning more protection