Nay Sir, I draw your attention to the Articles of War in relevance to the the USA, by whom your Congress of 1806 did ratify and pertain to Land or Sea commands:

Articles of War (1806) as pertains to the armed forces of the United States:

Art. 52. Any officer or soldier who shall misbehave himself before the enemy, run away, or shamefully abandon any fort, post, or guard which he or they may be commanded to defend, or speak words inducing others to do the like, or shall cast away his arms or ammunition, or who shall quit his post or colors to plunder and pillage, every such offended, being duly convicted thereof, shall suffer death, or such other punishment as shall be ordered by the sentence of a general court martial.