Actually, it IS a big deal. Running the generator while you are cooking disturbs everyone else in your anchorage.
Unless you have the kind of generator that you can't hear from outside the boat (and that includes the splash, splash of the exhaust), you should not be running the generator...