Yes, Logic Apps can be triggered by various Azure events.
Here is a start/stop VM example with HTTP trigger:
https://learn.microsoft.com/en-us/azure/azure-functions/start-stop-vms/overview
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola