Is it safe for tourists

Hello, me and 4 friends are thinking of visiting Nicaragua more in concrete San Juan. We are looking to do some surf and enjoy nightlife (a must). Is Nicaragua a good and safe destination for this kind of trip?