Yes, it shouldn't be a problem, as the directories are the same. To be on the safe side, make a backup of the following directories:
%APPDATA%\DBeaverData\
C:\Users\<YourUsername>\AppData\Roaming\DBeaverData\workspace6\
More information: https://dbeaver.com/docs/dbeaver/Workspace-Location/