It depends on the dog and on your setup.
I grew up on a farm that included about 100 acres with a main road dividing part of it. We let most of our dogs have the freedom to roam, but we had our share of issues. We lost 3 because they chased cars and were hit. One dog loved to roam the hills and...