It won’t hurt you, but it’s not a good idea. Cooling towels work using principles of evaporative cooling, so they need air circulation to work. A towel that’s layered underneath a shirt or sandwiched between your body and sheets probably won’t get the air exposure it needs to work effectively.