Yes, backup generators are required by the NEC for hospitals and certain other facilities (I’m at lunch and don’t have my copy of the NEC handy).
Generators are extremely common at hospitals, emergency dispatch centers, cell phone towers, nursing homes, natural gas and water pump stations, police and fire stations, data centers, etc.