Can I use my 2011 iMac as a Thunderbolt display for my PC?
iMacs can be used in Target Display Mode, but only from another Mac.  

This is a specific support mode, Mac to Mac, it is not the same as connecting an external display to a graphics card.

See OS X Yosemite: Use another Mac as a display