No you don't need to wear a helmet on a trainer. Helmets are required on the road to protect you if you get struck by a semi tractor-trailer truck. It is supposed to save your life. After getting run over, you just get up, brush yourself off, straighten your handlebars and helmet, and continue your ride. Unless you expect a semi to come crashing into your living room, you don't need a helmet.