That’s fine, as long as the link is unloaded.
Here is how you would get the doc link from the active doc.