When dissolved like this, it creates aqueous ammonia, a compound that is toxic to plants. In that sense, yes, ammonia can effectively kill weeds. However, the chemical can be hard to control.