Sure. Someone could have invented gunpowder at pretty much any time. It's not particularly complex, just no one figured it out until (probably) some Chinese monks discovered it accidentally in the 9th century. But in some plausible alternate history the Roman legions were using explosives and cannons to conquer the world a millennium before that.