I'm fairly sure that the total economic value that we get out of roads far exceeds the cost it takes to create and maintain them, yes. A similar argument can probably be made for justice systems and armies.
If a power generation system costs more to operate than the value of power we get out of it, it's probably not very useful. I think that's what we're talking about here.