Katanas were not used by most ninjas, as most ninjas were commoners and as such were not allowed to carry weapons in public.
However, as katanas were well known as effective weapons of war, when a ninja was off to an assassination mission or a high-class man allowed a sword, katanas certainly would be used.