"And if it is possible, how do we know that the link points to the latest version of the document?"
Use Document Structure. A parent document will point to the latest revision of a child document based on the user's filter (i.e. Latest or Latest Released, etc.).
Don't use Document Reference to Document since that will point to a specific version of a document to a specific (not necessarily latest) version of a document.