Isn't that the entire point? Putting solar panels in space has been done regularly the 1950s.
Might be ill-advised for a whole mass of reasons that I, as a software engineer, know naught of; but it would be a use case.