Yes, it’s technically possible to install Android 14 or even Android 15 on your Galaxy A9 2018 using a GSI ROM. But there’s a catch, the camera won’t work properly.
The issue is with the camera API. Your phone uses HAL1, but newer Android versions (12 and above) need HAL2 for the camera to function correctly. Since Galaxy A9 2018 doesn’t support HAL2, most GSI ROMs will have broken or non-working cameras.
To fix this, you’d need a custom vendor image that supports HAL2 but unfortunately, that’s not available for this device at this time. So yes, you can upgrade, but you’ll lose camera functionality unless someone builds a custom vendor for it.