Yep.
although making sure sewage was maintained properly is another story,
NASA has been recycling astronaut sewage for 50 years
not to mention Oxygen.
Lunar water can be split apart into oxygen and hydrogen
That would mean getting the ice in the craters for Lunar water. Water on the surface would get vaporized and float away.