It certainly works, but it worries me a bit as it will kill bees too. It is best if you can put somewhere to kill ants, but where the bees won’t go - like on the anthill. Even then, I worry about it blowing around - the insecticidal stuff is very fine powdery granules.
Personally I prefer borax mixed with fruit jam/jelly (or thickened fruit syrup - easy to make and cheap) in a jar with #8 hardware cloth in place of a lid. The ants can get through the mesh, the bees can’t. It worked in less than a week when put near the ant line to my hive.