Sparrow copying a robin ?

We have been watching a robin flit into the garden, feed, and flit out and then a moment later, a sparrow doing exactly the same. The sparrow flicks it’s tail in exactly the same way as the robin. Can this really be a copy cat sparrow ? They seem to stay close to each other. I would welcome an experts view pleaser !