Do you have to be a member on Club Penguin to be a ninja?

No, you can earn the black belt and the ninja mask without being a member. That would make you a ninja, so you don't have to be a member to be a ninja