Default Audio input

Hello,

Is it possible to connect a microphone (or other audio source) simply with a cable 3.5 jack on the jack port of a smartphone (in my case a nexus 5)?
My question may be stupid, but smartphones jack port is input and output,so is it sufficient to connect a source to understand that is an input?

thank you