can something explode in space
A spaceship with liquid hydrogen and liquid oxygen will blow up quite well in the vacuum of space. Chemical explosives will also explode in space since they function by breaking weakly bonded chemical components; no oxygen is necessary. Nuclear explosions can of course occur in space, too.