Yeah. That would be good enough (its also what im saying, you would get undefined result when you statically use the variable but don't actually write to it).

Also note, how GL actually works that way in some cases - gl_FragDepth kinda works like that.