Yes, and that was (is?) the business plan of various solar companies where they put solar on your house for "free", you pay them for your power, and they price you at some going rate that pays their costs. This was made possible by legislation that allowed California to demonopolize public power. What we have learned however is that an undue burden falls on the company that owns the actual transmission lines and cables since those things need maintenance but not all of the power going through them are paying a margin to the person who is tasked with maintaining them.
If you force solar companies to both provide the panels and provide the wires to hook your house up the local substation and maintain those wires, well they can't do that at a competitive rate.
If you force solar companies to both provide the panels and provide the wires to hook your house up the local substation and maintain those wires, well they can't do that at a competitive rate.