Yes, but one back-of-the-envelope calculation (it was a Python program someone wrote up as part of a comment on Slashdot as I recall) demonstrated that if all of New York's roofs were covered in solar panels there would be enough energy to run the city....
Good point. It feels right that the calculation ignored losses --- but if I recall, it did include panel efficiency and that has gotten much better, so maybe it would work now?