In short, yes. Follow https://learn.microsoft.com/en-us/answers/questions/1355447/restart-azure-web-app-via-web-job-with-powershell
Another option is to use an Azure Logic App. More at https://www.stevefenton.co.uk/blog/2020/07/start-and-stop-an-azure-app-service-on-a-schedule-with-azure-logic-apps/
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin