You could. Generate electricity from geothermal vents or hydroelectric dams in underwater rivers. You could provide artificial light to grow crops (and simply see.) We have the technology to do this. We could create a city underground right now with our technology and make it work.
But why would we? There's no incentive to do so and such a city would therefore be an economic failure.