So you want to play your Take 5 keyboard, send the midi to Logic, and have Logic send the midi back to the Take 5 to play the sounds?
Yes, you can do that. You’ll need to turn Local Off in the globals in the Take 5 so you don’t get double triggered notes. Once you do that, the Take 5’s keyboard won’t play the synth, but will still send midi notes out, and the synth will respond to midi notes in. Then you’d set Logic to echo the midi back so you can play live. Alternatively, you could leave local on and turn midi echo off in Logic, then you can still play the T5 from its keyboard when Logic isn’t running or USB isn’t connected. Logic will still receive the midi and let you record it.
As for audio, it’s not sent via the USB port on the Take 5 (Audio is not MIDI). You’d have to connect the T5 to an audio interface to get the audio into Logic.
When I say “Audio is not MIDI”, think of audio as a tape recording of actual sounds, and MIDI as sheet music or a player piano roll. MIDI is instructions to play specific notes, and then the synth generates the audio. Your DAW can record either midi, audio or both, but they’re separate things which you can do different things with once recorded.