Setting up Midi to only be used with the active track

Is there a way to set the A4 to only route incoming midi on a specified channel or any to only the active track?

Thank you for any and all feedback/help.

2d