Yes, playpens are designed to provide a safe and secure space for dogs. However, it's important to supervise your dog while they are in the playpen and ensure that it is set up correctly to prevent any accidents or escape attempts.