Yes, as long as the UI element still exists this should be possible.
This might be the usual open door, but sharing the actual error and such would surely enrich your post.
It only needs to be an in argument, not an in/out. (Unless you’re changing output_ui_element in one of your workflows)
Please always share details when posting a problem - like the text of the error message and screenshots of the relevant activities - so we don’t have to ask for them.