Yes, there are toilets outside the complex, next to the ticket office but also inside the Alhambra (in Generalife and in the area of Nasrid Palaces).