During the First World War , Cary served with a German regiment fighting in the Nigerian colony of Cameroon .
During the First World War , Cary served a German regiment in the Nigerian colony of Cameroon .

Do these sentences mean the same thing?
yes