If you plan on recording audio, you'll need a way to get audio into Logic Pro. Your Mac may have a built-in line in or microphone. These may work in a pinch but professional quality recordings need to be higher quality. Most professional hardware will mention Logic Pro capabilities in their features and specs.
It goes the same for MIDI. Your computer needs a way to send and receive MIDI. Many keyboards will send and receive MIDI through USB, eliminating the need for a third party interface. Other controllers may use DIN cables and require a hardware interface. Check the literature. Logic Pro will probably be mentioned.