Yes, all the Yamaha generators have a fuel valve shutoff (petcock) allowing you to switch off the fuel whilst the generator is operating so the remaining fuel in the carburetor runs dry.
This feature is especially popular if you intend to store your generator in a car, as the petrol fumes ill not permeate through the vehicle thanks to the shutoff valve.