Automatic customer and contact after lead creation

Good afternoon,
I am thinking if this is possible out of the box with erpnext. I would like to have the customers and contacts automatically added after a lead is created.

Of course, the details to be filled in are exclusively the ones from the lead as a standard, name and e-mail address.

Is this possible ?

With respect and appreciation,
Julian

Yes, write a hook for lead doctype to create customer, contact and address details.