It is possible, however, it will be really expensive as the keyboard is one part with the top cover. (page 2 of the service manual). It will also be a difficult job as you need to remove all the parts of the computer from the old top cover and place them in the new top cover.
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".