Can improving hygiene prevent gastroenteritis?

Absolutely YES. It is transmitted from hand to mouth so good hand washing is a must for prevention and spred of the common stomach flu.
Yes. This is how cruise ships solved the problem of shipboard epidemics.