APPLE INSIDER

Apple stated that new 2017 iMacs will not support Target Display Mode, a feature that previously allowed some iMac models between 2009 and 2014 to use their built-in display as an external monitor for another Mac connected via Mini Display Port or Thunderbolt.
Source: APPLE INSIDER