You have gotten good advice here, IMO.
We always had working dogs and our cows were used to them.
They knew NOT to go into the cows when they were calving, they went around the calving lot.
Cows that aren't used to dogs will fight the dog and you won't get much accomplished.
Good luck to you.