You’d want to divide the reactants in the bomb as we can’t harvest the sheer amount of energy like that. Plus there’s a lot of wasted material in the bomb that would be unnecessary in other scenarios
Theoretically yes, but it's the same problem as trying to get energy from a lightning bolt. It's possible but you need to somehow make sure that you don't completely fry the grid.