It is possible to post the invoice in MIRO to a different company (e.g. using company A) while the PO was placed for a plant that belongs to company B.
Invoice posting does not require that the whole logistics process needs to be changed. Still I would not say that such is a common practice and your accountants have to be very careful too, as they have to obtain the information through which company the invoice needs to be processed and payed somehow from the form they get from your vendor. Except it is your standard design that company B never pays invoices to externals.
Any other workaround would require a fake process (STO process between plants) and fake postings of movements that never happened this way (GR at A, goods issue at A, goods receipt at B)