Archon of Emeria looks at the entire turn to see if a player has cast a spell, even if Archon of Emeria wasn't on the battlefield when that spell was cast. Notably, you can't cast Archon of Emeria and then cast another spell during the same turn.