You can, but this is usually not recommended. Painting the rooftop will not necessarily harm the roof, but it requires consistent maintenance and can be very time consuming. Also, maintaining a professional appearance can become a very tedious task. Different layers of roofing adhere differently to the paint, and discoloration becomes common because the solar rays tend to consistently hit certain areas more than others. Extreme temperatures also tend to cause discoloration.