One audio jack at the end of the audio cable must be inserted to headphone, while the other end must be inserted to the microphone slot on your computer. Once this operation is done, that means the output audio will be redirected as the input audio. Then any audio can be recorded as you need from the microphone.
Can I use the headphone jack as an audio input?
there is ZERO chance of using a headphone OUTPUT as an INPUT. generally all inputs can not be used as outputs and all outputs can not be used as inputs. the only exceptions are hdmi (arc) and on some soundcards which are wired to allow for port swapping.
Can I use headphone out to mic in?
It doesn't say to use the headphone jack, nor the mic. Well... a headphone out will do as a line out. However a mic in won't do as a line in. The level out of the headphone jack will be far more than the mic input wants.