Hi Jacob,
Kayece here, An Independent advisor and a user just like you. I will be happy to assist you today.
I understand that you have redeemed your Minecraft Java on the wrong account. Unfortunately, once a code is redeemed to an account it cannot be transferred to another account. You may refer to the article on the link below.
https://support.microsoft.com/en-us/account-bil...
Source: https://answers.microsoft.com/en-us/windows/for...
If you have any additional questions, please let me know and I will gladly assist you.
Kayece
Stay Safe!