It was discouraged at ROTC summer camp in 1964 when I attended. However, I suck cotton gobs into my ears and got away with it.
I tried the same. The sergeant on the firing line asked me what was in my ears. "Cotton, sergeant," I replied "Who told you to put it there," he asked. "Nobody," I replied. "Get it out," he ordered.