Welcome @Fred4, to the community!
You referred to L9825 in the title and L9826 in the text, so please correct one of them. Essentially, however, both devices have the same structure.
If you switch the unused outputs to non-active so that the driver MOSFET is disabled, you should indeed be able to use the relevant OUT as an input. Please remember to read the status register twice to be on the safe side, as the first value may still be incorrect. Please also remember that the threshold is 0.38*VDD, i.e. 1.9V for 5V, which differs from the usual value for CMOS inputs.
I'm curious to see what your test reveals.
Regards
/Peter
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.