A pin configured as an input has a very high resistance, so negligible current will flow.
Now if you have both pins configured as outputs, you will have an issue if one is high and the other low. You can include a resistor in the connection to limit current if this happens by mistake.