Yes, but by the ocean nothing else would be appropriate.
Ask for a room by the ocean; it's worth the extra cost.
He was standing on a rocky beach by the ocean.
Despite its location by the ocean, air quality is not perfect.
Or I'd read books by the ocean until it was practically dark.
But the big thing is being here by the ocean.
"The people who live in all those big houses we keep seeing by the ocean," he said.
But after this little job is over, I'm living by the ocean.
It began with the patient on a train, which stopped by the ocean.
The film consists of five long takes set by the ocean.