Any undisturbed substrate of sufficient depth and appropriate particle size will have some denitrification, so a lot of planted tanks have such without it being noticed.
But to answer Matak's question, increased organic load - whether from original use of organics in the substrate or build-up of organics over time from feeding, plant debris, etc. - will definitely promote a steeper O2 gradient in the substrate, which in turn boosts the possibility/probability of gas bubbles. CO2 and N2 and harmless. With more severe anaerobic conditions from higher organic loads, real anoxia, you can get iron precipitation, H2S or methane generation. In undisturbed substrates even those are not dangerous (Diana Waldstad style tanks). This is because those gases are normally ozidized by bacteria before the reach the top of the substrate. If you disturb the substrate, and by this release them, they can cause problems. Very high organic substrates can also "leak" small amounts of toxic gases into the water column - this is classic dirty substrate issues with bottom dwellers, especially fish such as dwarf Cichlids and Corys which do some routine substrate low-level disturbance, being affected or killed first, schoolers and such only later.
HTH