Apps and different Apple ID's
Do apps retain their data even if you delete them and reinstall them with a different Apple ID? Trying to transfer my dad's old iPhone to a new iPhone, and there are a large number of apps that he downloaded with an Apple ID that is no longer being used at all. If I delete these apps and reinstall them with his Apple ID, do the apps still keep their data even though a different ID is being used?
Thanks for your help.
iPhone 14 Pro