Although coconut oil can protect from the UV rays of the sun, it is not as good as sunscreen. Coconut oil as sunscreen is not the perfect solution.