Yes. One Immerse Gamepack license covers both Dying Light: The Beast and Dying Light 2: Stay Human on the same platform.
Each platform needs its own license: PS5, Xbox Series X|S, or PC Steam. For example, a license bought on Steam works in both games on Steam, but not on PS5, or Xbox.
Your Personalized Profile also carries across both games. Set it up once, and it follows you into either game.