You can certainly collect things for your tank from the beach if legal. Just make sure you know what you're adding. You're far more likely to introduce diseases from the closed, overcrowded systems of the wholesalers and retailers out there. Most fish and inverts we add to our tanks are collected from the "beach".
Many people also run native tanks, where all the livestock is collected from the beach. While you're there get some "bugs" out of the water and feed your fish.