Yes. You must have your passport on you for entry to the Alhambra palace complex. No other form of ID is accepted, not even government-approved IDs from other nations.