Yes, you can, Saphire605.
Create a check to Company B and make a deposit to Company A.
You can refer to these articles:
Resolution for 'companys bank issue: 'Paid bill from incorrect bank account!' available: Yes.
The companys bank issue or error code is a known issue in Quickbooks Online (QBO) and/or Quickbooks. Support for this issue is available either by self-service or paid support options. Experts are available to resolve your Quickbooks issue to ensure minimal downtime and continue running your business. First try to resolve the companys bank issue yourself by looking for a resolution described in the article. If it is a complex companys bank issue or you are unable to solve the issue, you may contact us by clicking here or by using other companys bank support options.
For more information about resolving issues related to companys bank in Quickbooks/QBO or to get support for the issue 'Paid bill from incorrect bank account!', click the link below: