Yes, US residents to Iraq should obtain a visa either prior to their arrival at an Iraqi Consulate/Embassy or on arrival. Different passport holders need to abide by different visa rules, so make sure to check what applies to you specifically.