Yea sure, they can get skin cancer, but risk are much lower than whites.Dark skinned individuals have more melanin in their skin which acts as a buffer by absorbing ultraviolet radiation, thus reducing the chances of chronic skin burn and sun damage. It is said that melanin can provides a natural skin protection factor (SPF) of more than 13 in dark-skinned individuals and can filter twice as much UV radiation as white skin, that has far less melanin.
Being said that, there are several other factors than just UV rays that can cause cancer like genetics and some other environmental factors. Unlike whites, black individuals when diagnosed with skin cancer may be even deadlier because it often be ignored or hidden within the dark skin. So don't go for the fact that dark skinned individuals have less chances of skin cancer (which is true), always lookout for hidden moles and watch-out for any changes in shape,size,color and so so..