yes...any mic could potentially mic a bass cab...
Will it sound good is the real question. Why don't you try it out, play with it's position and then tell us what you think! You'll learn a lot more trying to do that than asking, cause you'll likely just get a whole bunck of smartace answers like mine...
One suggestion I would make though, is make sure you know where the diaphragm is on your D112...once you know that it's easier to place the mic in the right spot.
Jacob