Yes. You will be able to use any non hacked Pokémon transferred to Sun and Moon in battle spot doubles.
Also, about your shiny ditto, if you are going to transfer anything from Oras to sun and moon like you said in your question, you probably have poke bank. Try putting ditto in the poke banks. If it doesn’t go in, it’s hacked.