Can I backup on oxygen OS and restore to lineage OS using adb backup?
It's possible, but be specially cautious when proceeding.

An ADB backup contains system settings, which is likely to be different across ROMs. Blindly restoring an ADB backup from another ROM may render your device unbootable.

If you restore only the apps and their data, you'll probably succeed.