Yes it should work as a IOT hub. Basically from the connection string which we get it from Azure portal doesn't include device id.
Sample for initializing a client and creation of device.
var iothub = require('azure-iothub');
var connectionString = '[IoT Connection String]';
var registry = iothub.Registry.fromConnectionString(connectionString);
// Create a new device
var device = {
deviceId: 'sample-device-' + Date.now()
};
registry.create(device, function(err, deviceInfo, res) {
if (err) console.log(op + ' error: ' + err.toString());
if (res) console.log(op + ' status: ' + res.statusCode + ' ' + res.statusMessage);
if (deviceInfo) console.log(op + ' device info: ' + JSON.stringify(deviceInfo));
});
You can find more samples here.
https://github.com/Azure/azure-iot-sdk-node/tree/master/service
hope it helps.