No, the idea that you can hear the ocean by holding a seashell to your ear is a folk myth. The effect can also be observed in any resonant cavity and is created from ambient noise in the surrounding environment.