The answer would be: “Free African American(s) were allowed to enlist in the Union army and Navy.
If they wanted to fight against the confederacy and the slavery supporters then they were allowed to because the Emancipation Proclamation allowed them to join the Union army.
Hope this helps. :)