Multiple 2d pathfinding

Godot Version 4.4.1

I’m making an enemy for my game, and I want to add a path-following system. I want the enemy to stop for a second when it reaches a corner or a dead end. Do I have to manually code this for every path in the game, or can I create one system that works for all paths? If I can make a system, how would I do it?
Any help will be greatly appreciated.

Check out this 2D Navigation Overview from the Godot Docs. It has the basic setup for creating 2D navigation.

If your concern is just about customizing the behavior of the enemies in the path, yes you need to code for it, and if its a common behavior for all then make a class for it.