That's absolutely correct!
Code:
'to read
yourstring = regval(HKEY_CURRENT_USER\Control Panel\desktop\ScreenSaveUsePassword") 
'to write
regval(HKEY_CURRENT_USER\Control Panel\desktop\ScreenSaveUsePassword") = yourstring
but it depends if have that key, and the value ScreenSaveUsePassword