Hi Tina,
No, it won't be the same for TCP as TCP is a byte-stream protocol that does not preserve packet boundaries.
That means your application may be possible to generate the packets based on the trace file, but TCP does not guarantee that they will be transmitted independently.
Some packets may be fragmented according to TCP MTU and also ACKs will be piggybacked. Packets may be re-transmitted etc.
Regards,
K.