Importing data from the os_share table to the latest version

Hello
I updated from 22 to 27.1.3. I made it on a cloned VM. The updating process took some time and during the update users created new files and shared them with others. New files are not a problem - I added ‘filesystem_check_changes’ => 1 to the config file.
But what about sharing files with other users? Will be enough to export os_share table from the old v.22 nexcloud and import it to the updated v. 27 nexcloud?

Update was made from 22.0.0 to 27.1.3, Debian OS from 9 to 12, PHP from 7.3 to 8.2.7