Yup, so disconnecting won't change your output.
If you want to change your output then you will have to either store or tear down the barracks of the troops you want less of, or build extra barracks of the troops you want more of.
If you are just wanting to add more barracks, but don't have road space you are in luck, and your barracks doesn't even need to be finished built, just placed.