Hiding Apple ID from Whatsapp
Short answer; no. If you want to know what the app does share its linked under the privacy portion of the app's page:
https://apps.apple.com/us/app/whatsapp-messenger/id310633997
From what I can see there, your Apple ID isn't even shared with the app's devs.