how to auto create a project when a sales order is created.

how to auto create a project when a sales order is created.

i want to do this,

when i create a Sales order, it should create a project with same name as PO and has budget of same amount as Sales order.

can this be done automatically ?