Many motorcyclists choose to wear a bandana or a thin beanie under their motorcycle helmets to absorb sweat. As long as what you’re wearing does not impair your field of vision or helmet fit, then it is safe.