Yes. Ser Ilyn would have executed Cersei and Sansa if Tyrion lost the battle of the Blackwater. It was his job to kill when ordered, and because Cersei ordered it herself, he would have killed her.