I am not an expert. It may work, but still, the risk may not be taken, and this practice may be avoided.
If brands are same, both are fully synthetic (or semi synthetic, etc. i.e. composition process is the same), both meet the same API / ILSAC, etc. criteria, then these may be mixed, but still, lots of risks are involved.
Experts can guide better...