If you are playing with the "core assumptions" of any edition of DnD then, no, the game does not work well with a gritty theme. But that should be a moot point because gritty themes have never been central to DnD and have only become less so over time.
Though DnD does lend itself to wild...