TXB0108 for level shifting gate signals

I want to send and receive gates with a teensy, using software to change if a pin is output or input, so the logic level shifter need to be bi directional, would a TXB0108 suffice even with longer cables? Don’t now much about electronics :upside_down_face: