I mean I guess if we are talking about golf ball sized autonomous drones that fly next to a person and explode next to their ear, yea sure. Might as well get rid of all the militaries at that point.
As of right now, drones are very much like artillery. And they are used in place of artillery, because Ukrainians lack shells, and Russians lack effective ways of using their artillery. But countermeasures will be developed. And until we actually have real droids doing the fighting for us, there will be infantry taking ground, and they need firearms.
A combination of the lack of artillery ammunition and equipment, the lack of skill, and the way that the battlefield has staled and it's mostly small skirmishes that are more efficient to deal with using drones than artillery (which either side can't utilize to its full potential).
Soviet artillery is not efficient. It works, because they have a shit ton of guns and shitload of shells. Their artillery tactics are still very much WW2 based, which were outdated even at that time. Now both sides are running out of that equipment. Russia had to use North Korean shells ffs. Drones are a cheaper way to deliver precision strikes, on a battlefield that is mostly skirmishes these days. I guess we are going to see a bit more traditional artillery footage in the coming weeks, as Russia is gearing up for their summer offensive. Means larger waves, more use for traditional artillery.