Yes! It’s so simple, in fact, that the Soviet Union, a major oil exporter, used this method five times to deal with petrocalamities. The first happened in Uzbekistan, on September 30, 1966 with a blast 1.5 times the strength of the Hiroshima bomb and at a depth of 1.5 kilometers. KP also notes that subterranean nuclear blasts were used as much as 169 times in the Soviet Union to accomplish fairly mundane tasks like creating underground storage spaces for gas or building canals.
Ci voleva tanto? sgancia una pillolina e risolviamo tutto Barack!