No. While the U.S. Flag Code (Title 4, §8) recommends that civilians stand at attention with right hand over heart during the anthem when the flag is displayed, it is advisory only—not enforceable by law. No federal, state, or local statute mandates saluting or standing.
The Flag Code carries no penalties for non-compliance. Constitutional protections (First Amendment) guarantee the right to abstain from patriotic rituals. Military personnel in uniform follow separate regulations (rendering a military salute), but civilians are free to choose their expression—or none at all.