At least on a theoretical basis, it's almost possible to do what you're asking.
To do it, you have to isolate the outputs of the two gates, so they either can drive the final output, but neither can interfere with the other. Roughly the simplest circuit that can to that is a pair of diodes:
simulate this circuit – Schematic created using CircuitLab
The diodes basically let the values at A and B affect the output, but if A and B are driving opposite values, it prevents the "low" one from trying to pull the output voltage from the other to 0.
There are other kinds of circuits that allow you to do away with the diodes as well. The most common is an open collector/open drain circuit. In this case, you're typically dealing with an
and instead of an
simulate this circuit
In this case (open collector/open drain) neither A nor B ever attempts to drive its output high. Rather, they're connected to ground, and either conducting or not conducting. The output is driven high by the voltage through the pullup resistor. If either Q1 or Q2 is conducting, it can sink all the current coming through the pullup resistor. The pullup resistor is spec'ed to only allow a fairly small current, so either A or B can safely sink all the current (and if both A and B are low, each will conduct about half the current, so it's even safer).
Obviously enough, this can be extended to more than two inputs (though if you try to go too far, you'll eventually run into problems--even when turned off, the transistors leak a little current, and if you get enough leakage in parallel, you eventually get to the point that it's no longer dependably held high even when none of them is conducting. One trivial cure for this is to use a smaller resistor to increase the current (but this obviously increases power usage).