ameer

Disobeying the Ameer

Q: For a person to be an ameer, does there need to be an Imaam? i.e its mentioned in the hadith ومن يعص الأمير فقد عصاني so for a person to be an ameer which is meant in the hadith does there need to be an imaam?