Cable to record from iPhone to Mac
Yes, there's nothing why it shouldn't work.

Please not that some Macs only have one headphone Jack. Even if it automatically switches to in&amp;output when you plug in an (Apple) Headset, you'll have to set it manually to input when using a normal male-male cable.

To do this, open Settings>Audio and you'll find a dropdown box. ('use headphone jack as...' or so)