On the GPU alone, absolutely. They're in totally different ballparks performance-wise.
BUT, it'll depend what the balance of the hardware is. Anything relatively modern should benefit from the 1050 upgrade, but significantly older hardware may not.... and may even lack BIOS support for more modern cards.