Yes, this can happen, especially on hosting environments that support multiple PHP versions.
Your cPanel account might have a default PHP version, while individual domains or directories can have separate PHP configurations.
For example, your main domain could be running PHP 8.2 while a subdomain is still configured to use PHP 8.1.
I'd recommend checking the MultiPHP Manager section in cPanel, if available. It shows the PHP version assigned to each domain.
You can also create a temporary PHP information file to check the version used by a specific website directory. Just make sure to delete that file immediately afterward because it can expose sensitive server configuration details.
Also, remember that command-line PHP and website PHP may use different configurations.
So, don't assume that changing one PHP setting automatically changes every website under your account.