Magnet lines

Is it possible to enable the line tool to bind to the end of a line, as in Flash?