Will using a headphone splitter work to split microphones?

I want to use two microphones to record piano and voice but I only have one microphone jack on my computer. Can I use a headphone splitter to plug in the two mics and then plug that into my mic jack? Will it work or do I need to get a special microphone splitter? Anyone know? Thanks.
5 answers 5