are we talking audio or midi ?
To automatically disable input monitoring during playback:
Go to Edit > Preferences > Audio - Playback and Recording and clear the Disable Input Monitoring during Playback check box.
When this option is enabled, input monitoring will be disabled on all tracks during playback but not during recording.