Only if you ignore all externalities including:
- environmental damage from mining (yes this exists for renewables too)
- global warming
- pollution on city infrastructure
- pollution on health
- the sunk costs causing higher transition costs when inevitably you transfer to renewables anyways.