If your PC has a microphone port where you can plug it, then it should work.
Microphones for camera are often directional, so you have to use them in a correct way to get the expected sound quality.
If the microphone is not working, you have to check the settings for external microphones.