I want to shiny hunt for the legendaries that are available in the Dynamax Adventure battles. If I release the legendaries and take another Pokemon, can I go back for the legendaries?
Yes, the legendaries are not shiny locked. If you see that the legendary isn't shiny after you capture it, you can refuse to take it, have the scientist record its location, and attempt to continue hunting it.
Source: Experience
Hope I helped!