Is it important for painteds to get uv in their basking light, or is the main reason for the light is the heat?

Thanks