No, WD-40 is a multi-purpose lubricant and does not contain any chemicals that will break down carbon deposits. It is better to use the cleaner recommended by the generator manufacturer.