Yes, link layer encapsulates the datagram received from the network layer into a frame. Link layer protocol guarantees the correct flow of each network layer datagram without error. This protocol is used for links that are inclined to high error rates, like wireless links.