Personal salutes are rendered by juniors to seniors. The point of the first salute is to recognize the new ensign or second lieutenant with the first rendering of that by someone junior in rank, usually an enlisted person who has been particularly helpful.
That said, it’s purely traditional/ceremonial, do it whatever way you like for a fun photo op. No one is going to care or take action.
I followed the tradition and asked a Navy master chief at OCS, who had mentored me and prepared me to lead sailors with salt-of-the-deckplates advice, to honor me by giving me my first salute. We both had tears in our eyes. He made sure he was in the right position at the right time, the minute I put my officer cover on. We did not hug, of course, but it was a long and warm handshake after.