Should be possible, here is an example service file that’s used/created by ujust install-resilio (if you want to take a look/experiment with it, just try the ujust command, and then delete the container if you don’t need it – maybe look at the raw just scripts as well).
Edit: actually, I just remembered - isn’t this exactly what Quadlet is for? Try taking a look at Desktop Quadlet if normal Quadlet don’t work for you.