An occasional bite of dog food won't hurt your cat.
But dog food is not a substitute for cat food.
They do have many of the same ingredients.
But cat food is specially formulated for a cat's needs, which include more protein as well as certain vitamins and fatty acids.