Yes it is, take out the part where your code is checking if subscriber isin $msgtags. You may want to rename your variables a bit, because it does say %sub_list.
To make it dynamic, i would set a variable for !listban and then in your first line of code, check to see if %listban exists.
Something like: