it all depends on what level of runner you are, and what type of sand makes up the beach you plan to be running on.
Start on the hard stuff first, just on the edge of the water. I prefer bare foot, but beware of the friction of the sand. You wont notice it until its too late when blisters develop under your toes. So start with short runs, of nothing more than about 10kms until you are comfortable that your feet are used to the extra friction. Obviously make sure it is a clean beach, with no or very few shells, rocks, blue bottles, glass, or driftwood that could cut your feet.
It also can place a lot of strain on your ankles and muscles below the knee, so be warned... you may be stiff in new places the day after. Another reason to start slow, and short, and build up as you feel comfortable.
Once you are used to it, it is one of the most rewarding places to run! Good luck, and enjoy!