(The answer to your questions is YES, it should work)
Disclaimer: I must let you know that HP does not recommend upgrades or hardware changes as the device is equipped with parts that perform at its optimal performance by design, that said, the upgradeable parts listed by HP articles are purely for your ease, as the decision to upgrade will be at your own discretion.
(Replacement procedure / step by steps on how to replace the parts are also included in the same guide)
Check out the image below for details on parts tested and approved by HP to work on your device, also use the above link for keyword search to find the parts you need, along with its part numbers.
you may order the replacement parts on the HP Parts Store, If you've already looked for it and couldn't find it on the HP Parts Store, you may want to get it locally at the online store such as Amazon or eBay, etc...as the part numbers are universal.
P.S: Welcome to HP Community 😉
Keep us posted,
If you would like to thank us for our efforts to help you,
Give us a virtual high-five by clicking the 'Thumbs Up' icon below, followed by clicking on the "Accept as solution" on this post,
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".