Yes, you can extend the program to incorporate additional factors such as holidays. To do so, you would need to maintain a list of holidays and modify the logic within the isWeekday function to exclude those dates from being considered weekdays.