Question: are archer and shirou the same person?
Answer: Identity. Archer is not a proper Heroic Spirit in the sense of other heroes. His true identity is that of Shirou Emiya of an alternate timeline from that of Fate/stay night who made a contract with the world and became the Heroic Spirit EMIYA. He acts as a Counter Guardian for the world as payment for the contract.