Correct, the initial transaction is from a legal dealer or private seller to a legal buyer who will pass a background check. The legal buyer then turns around and illegally sells it to someone who cannot legally own a firearm. This is called a straw purchase.