Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Please search, this is typically asked about once a week.

Short answer: No. The iMac has no video input. You'd need a third party device and for various reasons that's not an ideal solution.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.