>>56227164As long as there's a good reason for the legendary to be outside of its usual territory range, then it should be fine for the story. Especially, if you want to add conflict by having it be somewhere it definitely isn't supposed to be. Depending on the legendary in question, your OC doesn't actually have to catch it. You can just establish a friendship and trust.
For instanfce, in the anime Noland befriended an Articuno after he helped it heal its injured wing.