Yes, mothballs can be used to deter opossums. Place a couple of mothballs in a sealed container. Poke multiple holes in the lid with a nail and place them near the garden. Avoid placing them directly on the ground.