Yes, ditto was has already been mentioned. There is a utility box next to my driveway. It is actually in the neighbors yard. The utility easement required that the area around the box be unobstructed so the utility has access. He ended up buiding his fence around it. I have a hedge next to it, but it is two feet away. You can probably plant a hedge as long as there is clearance around the box.
Planting edibles near the street is not a great idea, unless you plant something unusual. People will think it is a community garden and help themselves. if you plant anything there, it should probably be annual or biennials. If you put perennials there, you will need to take the chance that the utility may have to dig it up someday. It doesn't happen often, but it does happen.
The power kept going out on the street so the utility ran another line from another box to the one in front of the neighbor's house. The did not have to remove any plantings, but the sidewalk and part of my driveway was demolished to dig up the street, but they eventually did repair it. Actually, my driveway was lifted when these a(*&(%**& hooked up a chain to the street light in front of my house and dragged it down the street with their truck.
The worst part of that was that the utility changed the lamp to a low sodium night light that made only a small pool of light. The house across the street was broken into because it was in the dark, only then did the city put the higher watt light back.