so it's possible, though questions/problems arise such as: the cavity created by the explosion has a high chance of collapsing, the energy might trigger earthquakes, etc.
though smaller scale shaped charges "might" work to push rock out of the way, if the well segments can be advanced down safely into the created space.
https://en.m.wikipedia.org/wiki/Nuclear_shaped_charge
so it's possible, though questions/problems arise such as: the cavity created by the explosion has a high chance of collapsing, the energy might trigger earthquakes, etc.
though smaller scale shaped charges "might" work to push rock out of the way, if the well segments can be advanced down safely into the created space.