Certified GKH Gardening Expert
No, they are not for use against bugs in the home. In fact, if they are not used properly mothballs can be very dangerous. They are labeled for use in closed containers to repel moths in clothes. Inhaling the fumes can be deadly. Ingesting mothballs are toxic as well.
I wouldn't recommend using them for any reason. Here is more information: