Yes, storing spices in the freezer is perfectly fine if the container is airtight and the freezer doesn’t leak.