Yes you do. In the US Military, personal salute Comissoned Warrant officers, and Comissed officers, Foreign friendly Military members, The President, and medal of honor recipients. Like if you earned...
As Commander in Chief of the military, the President returns salutes of Unit Commanders when bearing the flag or otherwise and honors the flag with a hand over heart when it is passing via a group...