Use monitor as a Windows PC monitor

My old PC has a DVI output, will this enable me to use the iMac screen as my PC monitor when I need to?

Mini DisplayPort to DVI Adapter

Mini DisplayPort to DVI Adapter

Product No Longer Available

No Answers have been submitted