Upgrading PS4 Minecraft from disc to online
Yes, saved data is interchangeable between Physical and Digital versions of Minecraft Bedrock.
The only difference is that you will loose access to Minecraft Legacy Console Edition. Access to MCLCE is only available on Physical copies and Digital purchases before December 9, 2019.