Yes, windows functions exactly as it would should you have used a legit key and will tie in to any MS account you have logged in to permanently activate it forever (no need to keep activating), it even allows you to upgrade your Windows edition from home to pro if you wanted to. I have been doing this for literally a decade or more and have had zero repercussions from doing so.
Open windows poweshell - type in “irm https://massgrave.dev/get | iex” (without quotes) - when the menu comes up press “6” - in the next menu press “1” - in the next menu press the number that corresponds to the edition that you would like.