However, there were a few cases where women were allowed to serve in the Union army in a non-combat role. These women were typically nurses or cooks, and were not expected to fight in battle. If these women were captured, they would have been held as prisoners of war, but would have been treated differently than male prisoners. They would have been given more freedom and would have been allowed to receive visitors.