I do cotton during the winter as a single outer layer. But I always wear excercise shirts/jerseys next to the skin. They work better in wicking away sweat, more breathable, and don't retain heat.
Cotton will retain your body heat, and just get soaked as you sweat. If you hiking in the sun, you will feel the cotton to start to cook you.