This is a side point, but one thing to keep in mind is that even with a short i sound, "decode" would not be pronounced like "Dick-oh-d". You may have heard a rule about "short" vowel sounds being grouped with a following consonant, but that rule only applies when in syllables that have some degree of stress. A short vowel sound can occur at the end of a fully unstressed syllable (the exact circumstances in which you find short vowels are different in different accents).
When the syllable "de-" is pronounced with a short i sound, it is fully unstressed, and so the following consonant acts as the start of the second syllable in the word, not as the end of the first syllable. If a pronunciation of decode with the short i sound in the first syllable exists (I'm not sure about that), it would have to be "dih-kohd" [dɪˈkʰoʊd].
One more thing: in some accents (in particular, very often in North American English), the short i sound in unstressed syllables is not clearly distinct from the schwa sound. This is called the "weak vowel merger".
Merriam Webster corroborates the existence of two pronunciations for demilitarize: one where the first syllable has the long e sound and potentially has secondary stress, and one where the first syllable has the short i sound and is unstressed.
For decode and demilitarize, it certainly wouldn't be an issue to always pronounce the first syllable with a long e sound. But there are some words starting with de- where that would be unusual. The verbs deposit, derive, deceive, delude all start with a syllable that is etymologically derived from the Latin prefix de-, but the second parts of these verbs are not used as independent elements in English. Because of this, they tend not to be pronounced with a long e sound in the first syllable.