Certainly, if I remember correctly, CentOS 8 (non-stream) was supported but reached its end of life either last year or the year before. The CentOS Stream version, being continually updated, may not receive support, potentially leading to compatibility issues. Consequently, it's advisable to consult the application's requirements guide when setting up a new server to ensure compatibility with the operating system.
Considering this, transitioning from CentOS Stream to AlmaLinux appears to be a more viable option, particularly if the server is already in use for other purposes. However, if it's not being utilized yet, it might be more efficient to start fresh and deploy either AlmaLinux 8, which includes features like PHP versions 7.3 and older, or AlmaLinux 9.