Broadly yes, with ordinary city-centre caution
The tourist areas are heavily patrolled
Stay on lit streets after dark
Agree the fare before you get in. Meters are rare
Beach vendors are persistent, not dangerous
Pickpocketing is the real risk, not violence
Leave your passport in the hotel. Carry a copy