This question already has an answer here:
I have an iPhone which I suspect was hacked. So, I have restored the iPhone using iTunes on my computer. When connecting my phone to my computer, can any spyware files transfer from the phone to my computer and vice versa?
If I already restored my iPhone but I connected it again to the laptop (assuming the laptop was infected), would it be possible for this infection to transfer itself to my phone?