Apple Change Apple ID: Change your Apple ID - Apple Support
Just remember that if the apps were purchased on someone else's ID and you can't enter the Password for that ID, or they haven't given you access to those apps via Family Sharing, you won't be able to update them. You can purchase them under your own ID if you want.