While different types of roofs can support solar panels, optimal results are achieved on roofs with good sun exposure and structural integrity.