Yes, no reason why not. Tesla already has a solar roof option in some countries. Might get you up to another 5 miles a day in Southern latitudes where the sun is much higher in the sky and it's not cloudy. It could certainly power the air conditioning (at reduced output) though.