is there a way to use a macro to add and remove additional actions?

PD:I'm asking this because it depends the recipe i'm going to use I'll use differents actions.

Thank you.