All your app purchases are tied to the account that bought them. Apple and Google handle all this and they provide a way for you to check your purchase history:
- Apple: https://support.apple.com/HT204088
- Google: https://support.google.com/googleplay/answer/2850369