Thank you for the warning, I had to wipe dataYou will not loose you data, instead you are strongly suggested to wipe it yourself. I have seen it work without a wipe, but there's no guarantee.
See https://wiki.lineageos.org/signing_builds#using-a-script for the official way of switching from unofficial to official and other way around.