Charging Iphone 4s with Samsung charger?

After replacing my cracked screen my iphone 4s charges very slowly with USB charger connected to my computer and it doesn't charge at all with wall charger(output 5V - 1A). I tried plunging in Samsung charger (output 5 V - 2A ).It charges with Samsung charger. Can I use Samsung charger to charge iphone?

Yes you can charge it easily, there's no problem while charging with samsung charger!