Lafayette played a role at Yorktown but he didn’t draw Cornwallis into a trap. Cornwallis did that to himself.
Must not forget the strategic importance of the French / British naval Battle of the Chesapeake, Sept 5, 1781. While not decisive, it caused Adm Graves returned to NY to muster relief which made possible US victory at Yorktown.