Programming special movement using navmesh agent?

Hi folks,
let’s say we have a knight that runs to its target, it never goes directly to it but either keep it at its right or left side so when it gets close to it, the agent attacks and rotates around the target to attack agian.
Would the navigation system allow this kind of behaviour or any other creative behaviour rather than just going straight to the target and stop?

You can set a stop distance for the agent. The first 3 episodes of this series show exactly how to achieve this (in that case he use the click of mouse as a target but you can change it as you wish): https://www.youtube.com/playlist?list=PLivfKP2ufIK6ToVMtpc_KTHlJRZjuE1z0