I copied this off of a veterinary website, it's for dogs and cats, but it should be the same for goats. The only worry I'd have with sunscreen is that it might be toxic if they lick it off, but apparently there on sunscreens for pets...
Sunscreen, or sunblock, can be used on cats and dogs...