Could I claim the 30% federal solar tax credit for portion or all cost related to a re-roof if I get new solar panels?

IRS Form 5695 says "No costs relating to a solar panel or other  property installed as a roof (or portion thereof) will fail to qualify  solely because the property constitutes a structural component  of the structure on which it is installed." Since the the roof would be the supporting structure, shouldn't the cost qualify for the credit?