I'm working in a project when Sometime maybe a port may write a HIGH value into another port that is outpus as well but this another port in case may be 0V.
Example:
...
imagine a scenary where 2 pins can turn the same led on.
In case of the port 10 is 0v, could I just send 5V to this port trough another port?
Santa Claus’s imaginary north pole house burns down while he has his shirts off, if you execute that imaginary scenario and he will be very much pissed.
The whole point of programming is to take multiple inputs into consideration in deciding what the output should be. If you have two or two million buttons, you decide how the combination of on/off states of these buttons determine the on/off state of the LED, not the way you described.