Yes. Food-grade diatomaceous earth is not harmful to squirrels but will effectively repel them if used properly. You can use it to keep squirrels and other rodents away from your property.