Most of the time people with cow's milk allergy
cross react to goat and sheep milk.
The casein proteins share 87-98% of the same Amino Acids across all 3 species. Therefore it is possible to only be allergic to goat or sheep, but not very likely.
Goat and sheep milk are not safe substitutes for people with anaphylactic reactions to cow's milk.