Yes swimming in the ocean is generally safe but there are certain things you must take into consideration when doing so; check with local authorities for any warnings about water quality or dangerous wildlife that may be present before entering the water. Be aware of rip currents too which can drag swimmers out to sea if they don't know how to escape them correctly so familiarize yourself beforehand with safety protocols for these types of situations.