This is theoretically possible, but the installation must include energy storage facilities in addition to the SunRoof roof. On sunny days, when the energy yield is high and exceeding your consumption, the excess energy will be stored. Later it will be used when the energy yield is less than consumption, e.g. on cloudy days.