Hello Antonio,
Yes, you could set up the rules such that it will update alternative leave account when employee works on public holiday or work more then the agreed hours.
Let me know if you need further inputs. If the your query is addressed, Please mark this thread as answered.
Regards,
Harshal