Probably. Compare them and see it they are the same.
I researched your question on EBay....and found that the alternator for a 2002-2005 Sonata are the same......then it changes for 2006. See below. NEW ALTERNATOR FITS HYUNDAI SANTA FE,SONATA, KIA MAGENTIS, OPTIMA 2.4L 01 02-05
Search Hyundai Sonata Questions
Hyundai Sonata Experts