If they're human then they are not immune. But in this campaign they were possibly not louse infected as were the French.
I also wondered why the French were affected more by yellow fever than the Haitian blacks. This is probably the answer:
" Disease outbreaks in towns and non-native people may be more serious because of higher densities of mosquito vectors and higher population densities.[15]"
Although the pathogens are very different, typhus is also an insect-borne infection, so the same factors might apply as with yellow fever.