I would certainly have a go! Perhaps I would research whether Lineage builds worked and were distributed first [1], maybe not https://www.reddit.com/r/LineageOS/comments/xiflon/lineageos_19_for_galaxy_a5_2017/ … the kernel comments in this post are the likely blocker. In very quick research it is also slightly odd that I see no evidence of updates of the device tree for Android 12.
Next step would be check the forks Forks · LineageOS/android_device_samsung_a5y17lte · GitHub
[1] https://xdaforums.com/t/rom-a5-7-2017-12-13-14-lineageos-19-1-20-21-unofficial.4517749/
Will this version ever go official?
The main drawback is that our linux kernel 3.18 has become too old