We have. Field fence with a couple strands of barbed wire on top works well for both. We have actually been running both with just five wire barbed wire for the past ten years or so and never had a sheep get through. But just ewes and rams. We raise the lambs in the barn. We ran four wires on an interior fence and it has been holding all but one small Dorper ewe that crawls under. The barbed wire also doesn't keep in our guardian dogs, which isn't an issue where we live, but would be if we lived on a paved road or had closer neighbors.
One tip, cattle need more copper than sheep can tolerate. We deal with this by keeping the cattle's salt block at the bottom of a 3 foot deeo trough so the sheep cannot reach it. Also, rams will sometimes fight with bulls so safest not to run them together.