Yes. Existing SharePoint access rights apply in Confluence. A user can only open a SharePoint file or folder in Confluence if they already have permission to open it in SharePoint. Restricted content stays restricted, even when it is linked on a Confluence page that more people can see.