Answer
No, you cannot prevent another nation’s traders from crossing your territory.
Once you research the Early Empire civic, you gain the ability to enforce borders against military units and allow friendly nations to cross them.
However, traders and religious units are exempt from closed borders, and can wander freely into your territory. See Civ VI Border Rules for more information.
Attribution
Source : Link , Question Author : rs232 , Answer Author : Shaun