Are electric coffee grinders safe?

Yes, just keep it at least 6 inches away from your ICD when you're grinding beans.