Yes, you could use Mover to migration SharePoint from one tenant to another tenant. Mover is a 100% free service.
Click Login in the top right of the page -> Sign in with your Microsoft account -> Select company B tenant as source with company B admin account -> Select company B tenant as destination with company A admin account -> Start transferring.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.