Yes. I must also add that Las Vegas and Dubai are in areas with tremendously abundant year round solar power. There is rarely even a cloud in the sky. When the sun is up these days upwards of 40% of the power in Southern California can be solar. Not sure about Nevada but the potential is definitely there.
http://www.caiso.com/TodaysOutlook/Pages/supply.aspx
Around noon PST you'll see upwards of 11GW of solar. (This includes rooftop installations if they have smart meters.)
Of course it's more efficient to just put the plant's leaves in the sun, but water isn't free either and you lose far more water that way. I wonder if cost of water in the desert could outrun the cost of indirect solar -> electricity -> calories? It could be true in the US Southwest, but it could definitely be true in Dubai or Saudi Arabia. In places like that desalination is one of the only sources of fresh water, and that's likely more energy intensive than indoor farming.
So yes it could work in a few markets, but it's not going to replace conventional agriculture broadly.