While that's possible, what you'll be able to accomplish with rooftop solar depends a lot on two rather unglamorous technicalities: The size and weight of the panels you can fit on your roof.
Solar panels can simplistically be thought of as batteries. But batteries can also be the solar panels’ undoing. Confused?