Yes. Authors can publish in a subscription journal and make either the final published version (Version of Record, VoR) or the Author’s Accepted Manuscript (AAM) openly available in a repository. For details see Guidance on the Implementation of Plan S. If you are a member of a higher education institution your library may be able to advise.