Sun burn doesn’t cause darker skin. Also being tan from sun exposure doesn’t have much to do with race. Melanin in the skin functions as a protectant against UV rays, so you would actually expect paler people to have more reaction to UV simply because they would have more exposure.