A bacteria will not necessarily die during the replication stage of a viral infection. If the bacteriophage that has infected the host bacteria has a lytic cycle, then the bacteria will die when the virus replicates. However, if the virus has a lysogenic cycle, its genome will integrate into the bacterial genome and it will be replicated without lysing the cell.