In the U.S. and in many other countries around the world there’s no law that forbids a civilian from wearing a boonie cap or, for that matter, most other military hats types. It’s even okay for fans of military hats with patches to affix a unit insignia or name of a vessel to their boonie cap.