Oh yes it was mandatory but amongst many Soviet soldiers they tried to wear their helmet as little as possible as it was unmanly. Often they used the helmet just as washbowl. Of course, when the shrapnel started flying you would want a helmet. Plenty of photos of Red Army soldiers wearing pilotkas in battle, just like there are many of them wearing helmets, it depends on the situation.