Very, very important.
So important in fact that not only can you buy gates for stairs and pens to corral your children, and locks for the knobs on your stove, you can also buy mesh fencing for your driveway.
Personally I think one of those invisible electric dog fences would do the trick much better. No pesky escaping around the sides of the "safety zone" that way.