Conceptual question re replication

Hello, there, I’m still trying to understand how replication works. Let say I got two IPFS node running, how exactly is data being replicated once new information has been added to one of the nodes? Let say I add information and turn off the node, will the information be available in the other node right away?