Unless you know your PC can run fine without them, it's probably best to turn them off while gaming or make it so they can ..
RAM is your computer's short-term memory, and the machine uses it not just for gaming but ... will need while executing a task. Adding more RAM can make your computer run faster.