Is in-app purchase still exists on the device if buyer's account is logged out? Background : 
I want to buy the full version of Cytus and Deemo games using my friend's credit card, so what I thought is he have to login using his google account and then after purchasing is complete, he logged out his account. 

My question : 
Is the purchase still saved on my device even if my friend account already logged out of my device? And is it possible to restore the purchase again if someday I reinstall the games after I delete it?

Thank you.
If you are logged in with your Google account, the app will be in the list of all your apps and you will be able to re-install it on any device conected to your Google account.