A yarn winding machine comprising: a yarn winding unit including a yarn feeder configured to supply yarn and a winding apparatus configured to wind the yarn supplied from the yarn feeder and to form a package; a receiving unit configured to receive a setting of target quality of the yarn to be wound by the winding apparatus; and a control device configured to control operation of the yarn winding unit, wherein the control device controls the operation of the yarn winding unit so that yarn quality of the yarn to be wound by the winding apparatus results in the target quality that the receiving unit has received, the yarn winding unit further includes a yarn monitoring device configured to detect a state of the yarn to be wound by the winding apparatus, the control device acquires information concerning the state of the yarn detected by the yarn monitoring device from the yarn monitoring device, and controls the operation of the yarn winding unit so that the yarn quality based on the information concerning the state of the yarn detected by the yarn monitoring device results in the target quality, the control device controls at least one of a winding speed at which the winding apparatus winds the yarn and a tension of the yarn to be wound by the winding apparatus so that the yarn quality satisfies the target quality, characterized in that the yarn quality is at least any of a yarn defect of the yarn, hairiness of the yarn, and unevenness in thickness of the yarn, and when at least any of number of the yarn defects, an amount of the hairiness, and a degree of the unevenness in thickness are set as the target quality, the control device controls the operation of the yarn winding unit to satisfy the set target quality. a yarn winding unit including a yarn feeder configured to supply yarn and a winding apparatus configured to wind the yarn supplied from the yarn feeder and to form a package; a receiving unit configured to receive a setting of target quality of the yarn to be wound by the winding apparatus; and a control device configured to control operation of the yarn winding unit, wherein the control device controls the operation of the yarn winding unit so that yarn quality of the yarn to be wound by the winding apparatus results in the target quality that the receiving unit has received, the yarn winding unit further includes a yarn monitoring device configured to detect a state of the yarn to be wound by the winding apparatus, the control device acquires information concerning the state of the yarn detected by the yarn monitoring device from the yarn monitoring device, and controls the operation of the yarn winding unit so that the yarn quality based on the information concerning the state of the yarn detected by the yarn monitoring device results in the target quality, the control device controls at least one of a winding speed at which the winding apparatus winds the yarn and a tension of the yarn to be wound by the winding apparatus so that the yarn quality satisfies the target quality, characterized in that the yarn quality is at least any of a yarn defect of the yarn, hairiness of the yarn, and unevenness in thickness of the yarn, and when at least any of number of the yarn defects, an amount of the hairiness, and a degree of the unevenness in thickness are set as the target quality, the control device controls the operation of the yarn winding unit to satisfy the set target quality.