Assuming my iPhone has a virus, would quick start transfer it to the new phone - eviltoast

Before anyone flames me for viruses on iPhone, this is hypothetical. I’m just curious.