Not if you already activated it.
It used to be possible to buy games as gifts and and them to your inventory to give to somebody ( or activate it yourself ) later.
Now, when you want to gift a game. You have to immediately select the person you want to send it to.
Maybe this should be enforced by law. At least for digital purchases which are basically a license.
The only things you can easily give to others are DRM free things, like the games you can buy from GOG. But in that case it’s also easy to copy.