“Erect” literally means “to set up,” or “establish,” from the same root as “direct.” It’s common to use in terms of erecting a diocese, erecting a district, erecting a county seat, erecting a business district, etc.
If you want to use it in this context, feel free, but It sounds stupid. A path is something you lay down, not set up.