Only frame the portion without the cable you linked to - because that cable won't work for this application.
In this type of cable you linked to, with a TRRS male connector on either end, leads are connected on a one-to-one basis.
Tip to Tip, Ring 1 to Ring 1 etc.
What will happen if you plug that into the PC on one side and the Mac on the other side is that you connect the two headphone outputs to each other which is not a good idea at all - could damage one or both outputs.
On the PC the sleeve would be ground, that ground would connect to Ring 2 and the Sleeve on the Mac.
Sleeve on the Mac is the mike input so in the best scenario, nothing will happen.
What is needed is an adapter that connects the tip and ring of the male connector that plugs into the PC to the sleeve (Mac mike input) of the 4-pole male connector that plugs into the Mac.
And also possibly a connection for the ground between the sleeve of the male connector that plugs into the PC and Ring 2 of the male connector that plugs into the Mac (Ring 2 is ground on the Mac side).
PS: I did a quick search for an adapter cable like that but didn't come across anything suitable.
It seems one needs at least an adapter plus a cable.
May be easier to just get a $10/$15 USB audio adapter