Yes; If you change the drive mode of the IO pin, you can set it to "HIGH-Z" which is high impedance as the "disconnected" state, and then set it for Pulled-High or Pulled-Low to associate it with the high or low output values for the tri-state. Although, changing the drive mode frequently is probably not the greatest solution. (Instead of setting the drive mode to high or low, you can set it to one of the modes that allows you to write a 0 or 1 to it, and it will output as a digital pin instead pretty easily.)
1 of 1 people found this helpful
Another choice would be to configure the pin using "output enable". You can use that signal to tristate the pin.