You certainly can.
You can switch the associated Microsoft account using this instruction:
Go to Settings > Accounts > Your info
Click on Sign in with local user instead. follow the steps and finish the rest.
(If you don't see the "sign in with a local account instead option, click on "Stop signing into Microsoft apps automatically" first, then relaunch this page. )
Restart the computer (Do Not skip)
Go to Settings > Accounts > Your info
Click on Sign in with Microsoft account instead. follow the steps and finish the rest, Make sure you sign in with the desired Microsoft account here.
Restart the computer (Do Not skip)
==================
I do want to bring up the topic of bitlocker key. If encryption is enabled, you want to make sure you obtain the bitlocker key from the old account and save it somewhere safe. The key is saved here: https://account.microsoft.com/devices/recoverykey