It looks like just adding it to your wallet is enough. https://support.steampowered.com/kb_article.php?ref=3330-IAGK-7663
Well it says "(Receiving a Steam gift or digital gift card from a friend doesn't count)" but idk if it means even spending it wouldn't count.
Well I'm gonna have it so I give my friend money to buy me a digital gift card, not a physical gift card.
Some examples of purchases that grant access to these features are: Adding a Steam Wallet card that is equal to $5 USD or more to your Steam account
"(Receiving a Steam gift or *digital gift card* from a friend doesn't count)" but I don't know if spending what the gift card gave me would count.
Well I asked on the steam community page and they said no. :/ (I reasked making sure it was clear what I was asking)