Yes, you can do this by either of these two methods:

1. Using Scenario  - Use Add Note under the Actions section OR

2. Set up an automation rule under Admin > Workflows > Automations > Ticket creation / Ticket updates tab > New rule to Trigger Webhooks and Add Notes. For details related to API, click here.