Creating a command to send an fx plugin from your inserts on mixer to the off line section

Can I set up in generic control a midi message from my hardware to move a plugin from inserts to off line process?