I disagree, if by "it" you mean explosives. There are just too many industrially useful explosive chemicals around, like ammonium nitrate, so once industrial development moves into chemicals and chemistry it's virtually certain people will have the idea of using explosives on the battlefield. I can't see a situation where industrialization and anything much resembling OTL pre-gunpowder warfare can coexist for more than a century or so, unless you have industrialization flame out before it starts getting into chemicals.IOTL it was only discovered once, and that was by accident, so probably not.
On the other hand, this could result in a very interesting alternate approach to war, where guns as such don't exist, and instead the principal armaments are a mixture of grenades and rockets. It did seem to take a long time for people to have the idea of a gun--it's not exactly the obvious way to use an explosive--so it wouldn't be too implausible for the idea to simply not occur to people in a couple of centuries. And assuming an ongoing industrial revolution, that's enough to make guns basically unnecessary, in a certain sense--yes, they're decent at killing people, but these people have rocket artillery, guided missiles for tanks and ships, gyrojet-type firearms for their infantry and so on that are not so much clearly worse than guns that the idea of building a controlled exploder to propel bits of metal at people is likely to gain a lot of traction.