Does Morocco have elections?

Yes. However, the elections do not mean much since the King of Morocco is not elected and maintains most political power in the country.