Answer
Yes — compute the period's actual end date dynamically using ACCOUNTING_PERIOD_API functions (for example, combining GET_CURR_ACC_YEAR_PERIOD() to get the current year/period and GET_UNTIL_DATE_FOR_YEAR_PERIOD() to get that period's end date) and add the number of days you need as an offset, using that expression in a custom schedule for the Scheduled Database Task. This keeps the schedule correctly aligned to each period's actual end date automatically, rather than needing a hardcoded date that has to be updated every period.