Yes, you can swim in the ocean at Cocoa Beach. Nevertheless, you should be aware of the ocean conditions and follow any posted warning signs, like dangerous marine life. Also, swim in areas with lifeguards on duty.