No, guns are more expensive, but they are reusable. You can fire north of 10000 rounds with a gun. The individual rounds are very cheap in the dollar range.
A drone that carries and explosive and meets another drone and blows up is quite an expensive solution. You'd prefer a gun any day.