Yes, you would receive that error as returned by RegOpenKeyEx if the key did not exist.