My understanding is that indeed, "any cloth" will provide some protection against UV. With the advent of SPF numbers, providing a number for your product clothing has become a marketing point; but even a thin cheesy T-shirt will be better than bare skin exposed to sunlight. On the other hand, well applied sun screen beats thin clothing.
_________________________
Geezer in Chief