When my user registers in Drupal and his account is created, I'd like to be able to create an account in a 3rd-party system (e.g. some moodle site).

Is that possible with an existing module? If not, what would be the preferred way to add this functionality?