Mothballs contain the chemical dichlorobenzene and are not labeled for use on food products. Moth balls are often suggested for repelling wildlife from gardens, but this is an illegal pesticide use and probably ineffective.
Another thing to consider is that the moth balls themselves present an attractive nuisance to both children and wildlife. If eaten they are highly toxic.