Obviously, no.
Bodega Harbour has 18 ocean-view holes and doesn't feature on any lists. Same goes for Crail Balcomie.
But the ocean-view holes definitely improve the quality of the experience. Would Bodega Harbour exist if it were just on the other side of the ridge, without the ocean view and associated real-estate development? Could it have stayed open this long without so many ocean-view holes? Would any of you have played Crail if it were on the other side of the road, e.g., across the street from Kingsbarns?
If one is not sophisticated in thinking about golf course architecture, ocean views are an easy way to characterize (and remember) courses. I play often at Shennecossett, and I often skip 15-17: two layup holes and a bland par 3, shoehorned in between roads and wetlands but with a view of the Long Island Sound. Other golfers have told me I was missing the best part. And when I played Cabot, the only thing I could tell my non-golfer friend about it was the number of ocean-view holes.
Both the Golf Digest and Golf Magazine top 100 public U.S. course lists feature 10 ocean- or Great Lake-view courses among their top 20, not counting Pasatiempo's distant view of Monterey Bay.