Dogs may poop in the kennel, but this is not behaviorally correct. Often, dogs will avoid peeing in their bed or kennel because they instinctively know that doing so will make them uncomfortable. If a dog poops in its litter box, it could be because it doesn't have enough time to defecate outside, has gastrointestinal health issues, stress, an uncomfortable environment, and more.
Ensure that every dog has enough outdoor activity time to meet its physiological needs, as well as provide them with Provide a clean and comfortable environment to reduce the number of dogs peeing and defecating in the kennel. If this happens frequently, it's a good idea to visit your veterinarian to check for a medical problem.