How to hook drupal commerce line item create
Yes, you can use

hook_entity_insert()

Act on entities when inserted.


hook_entity_presave()

Act on an entity before it is about to be created or updated.