Everything depends on cooling, power costs, backup, and area available. Your area should be neat, as to make cooling as effective as possible. You'll want cheap electricity in a cooler place, so you won't use as much power on cooling, but still need especially cheap electricity. Cool and cheap is a huge factor, which is why many farms are located in Washington state in the US. You'll want extended backup to keep things going in case of power going out; it takes time to shut miners down safely. There's many more factors like cost of miners and what model, but assuming it's an S9 farm with 5-cent electricity or less, in an ideal enviroment, it should work.
While I agree with 80% of what is said, I think any focus on backup is largely wasted money. There is very little risk to a miner from an unplanned shutdown. Yes, mining time is lost when the lights go out, but that's it. If you have unstable power with frequent outages, then you have a different problem, that backup is unlikely to solve.
Mining is does not need a Data Center environment. Extensive backup and redundancy in power isn't free, and is unlikely to pay for itself.
I am basing this on the general reliability of of the USA electrical grid. Your environment may be different.