Could a UXP script read and write data to a UXP plugin?

I am new to UXP (but have lots of experience with ExtendScript and ActionManager). There are a number of small scripts used by our team that I would like to convert to UXP, but to be genuinely useful they would need to read and write user preferences—and my understanding is that it’s not possible for a script to write/retrieve preferences as ExtendScript does.

Would it be possible to write a UXP plugin that could somehow allow UXP scripts to read and write data from it?

You can trigger scripts using UXP plugins, check out this post: Can i run javascript.jsx file using UXP button - #10 by matakus