Sadly, not in very many places. In most US states, for example, utilities have lobbied to get laws that don't allow residential customers to sell power back to them, at most net-metering agreements will allow you to get credits from any excess power your panels generate (which is how my utility handles mine - unfortunately, since I generate more than I use, I can't actually make use of those credits fully, and I'm giving away some power to the grid).