The free account stores photos locally on your device. Logging out should not delete them, but do not uninstall the app, because that does delete them! If you then log into the paid account, then the local photos should be synced to the cloud and become available on all other synced devices.
If you want to make sure that nothing goes wrong, then first export the photos that are in the free account.
-- Johan W. Elzenga