Is it possible to use an imac 2009 as a screen for a macbook pro 2017?

Is it possible to use an imac 2009 as a screen for a macbook pro 2017? If so, what cable will I need for this to work? Ideally, with a mini-port display on a USB-C cable, it would work simply, but I have doubts.