The powder in ammunition burns, not explodes. A necessary bit of pedantry because something has to ignite it, which is the primer. And a primer needs a sharp blow from a sharpish object (I’ve hammered primers practically flat without them going off).
In summary, ammunition will not go off.