Provided that you only need to add the line <action application="sched_hangup" data="[+]<time>[ <hangup_cause>]"/> into the dial plan then in theory yes. I believe you will need to set a condition to match the extension in the dial plan that you don't want the hangup to apply to and a another to catch all and apply the hangup. I have never done this myself but looking as some of the other dailplan configs such as do-not-disturb it has multiple conditions that are to be matched and it used the break on true to execute the commands it should be possible.