All dogs should be taken for a walk at least once a day weather permitting, and let out into a fenced area or taken out as nature calls. But, some breeds need outdoor time much more than others. Working breeds need to be given a task or a job and taught to do it, they’re essentially compelled by breeding. If you don’t give them one they’ll invent one, and you may not like what they’ve decided to do. Prime example, Border Collies. Extremely bright, energetic animals with a need to herd, they were bred to do it and live for it. They’ll do it to you, to other animals, you name it. A bored Border Collie with no task or job and no entertainment can be very, very destructive.
Mine have the run of the yard all day. I even put two doggie doors in so they can get in and out. One in the main house and another on the screen porch.