Depends on the veg or fruit, and the severity of the mould. I do err on the side of caution. Admittedly if mould isn't too "bad" on pumpkin, and I've got a big wedge of pumpkin left, I cut a good chunk of the mouldy bit off and use what's left.