indeed in a matter of courts martial where you get tried by jury but still remain enlisted in the military it will not affect you but in the matter of Non Judiciary Punishment (which im not sure if it is simply a case where the navy and marine corps only do this or if it is a matter of a different era) or NJP as we like to call it, this is where you go and get tried for "crimes" you have committed just like your eating of a hamburger and the judge jury and executioner is your commanding officer the result of this could range anywhere from being put on restriction to being discharged under less than honorable terms the former does not stick around but the latter definately will and to further worsen it if you recieve a dishonorable, bad conduct or less than honorable discharge you cannot work for anyone who has any contract with the Navy which now days is almost any company you can think of and all of this hinges on weather or not your commanding officer is having a good day and believe me i have seen people get discharged through NJP for matters far less pressing than even eating a hamburger on watch