Sunlight , Vitamin D and Cancers

Health Ranger says that sunlight and vitamin D prevent many cancers. Dark skinned people need lots more exposure to the sun to build up their vitamin D. Intuitively this makes sense. I should definitely be getting my light rays for the sun rather than a computer screen