RAW, no. You cannot do an Indiana Jones with Thorn Whip and swing across pits unless your DM wants to homebrew your cantrip. PHB p. 282, “lashes out at your command toward a creature within range”.