Sandra,
Not quite. They were in Kentucky with Bragg and would participate in the Battle of Perryville less than 3 weeks after the Battle of Iuka took place. Here is a link to a history of the 24th.