Yes, but rather than doing it with an alias, I recommend using a remote script that looks for the request that basically asks for the password.
Something like:
Code:
on ^*:notice:*is registered*:*:{
  if ($me isin $1-) && ($nick == nickserv) {
    .msg $nick identify <password>
  }
  halt
}

I don't use DalNet, but it's my understanding that they use a different name for their nick registration service, so you would need to change nickserv in the above code to that name.

Also note that this is only configured for a single password