Yes, diatomaceous earth kills ants and used to get rid of black house ants and carpenter ants due to their small size and vulnerable exoskeletons as it sticks to their exoskeletons like burrs, cutting through the cuticle and absorbing the fats and moisture within but it's not efficient by the same degree to all species.