Cushitic is Proto nilotic mixed with west Eurasian (natufian).Somalis don’t have Nilotic ancestry…Somalis are 90%+ Cushitic
Technically you are right though. Somalis are not nilotic since they are a different thing.
However somalis as a Cushtiic group descend from a group of Tribes that would eventually mix become the modern nilotes.