From my experience, you can use the TX pin as an input. This same experienced is shared and discussed on the Microchip forum. However, I don't think you should do it if it can be avoided. Again, I have some prototypes which use it that way and they work without issues; but it seems like undocumented (likely unsupported).