Yes!

    foreach ($order->getShipments() as $shipment) {
        foreach ($shipment->getItems() as $item) {
            $collection->add($item);
        }
    }

Then `$collection === $order->getInventoryUnits()`