Can I assign the same mouse button to different GSE macros based on spec in WoW Classic?

if you just assign all your sequences you want for a particular class to same button, when you switch between the specs, the buttons stays the same and uses what ever sequence you have set.