No, the PKG-to-ISO method discussed here is specifically for PS3 homebrew. PS4 packages must be installed directly through the package installer. What if the PKG is a patch or update?
Look inside the extracted folder:
macOS_Sonoma.iso – bootable on Intel Macs (not Apple Silicon natively). how to convert pkg to iso updated