Yes, it will activate as it is within your Hardware, only if you change more than one hardware component then it might not reactivate as it will be considered as a New pc.
https://support.microsoft.com/en-us/windows/reactivating-windows-10-after-a-hardware-change-2c0e962a-f04c-145b-6ead-fb3fc72b6665
--If the reply is helpful, please Upvote and Accept as an answer--