Does switching pinMode from INPUT to OUTPUT produce reliable output LOW?

I tested that idea a while ago, results are here.

Then there is further discussion about how it could cause damage if a code error set the pin to output mode when it should be input.