Can a water heater be used for two floors?

No, this is not suggested.