Yes! Outlook allows you to pre-schedule Out of Office responds. In the File > Automatic Replies, tick the event to receive the responses only during this time range, and enter your start/end-dates. This can be ideal when on a vacation or business trip as scheduled automated responses can be launched when required.
For more read – https://datarecovee.com/how-to-set-an-out-of-office-on-outlook/