A Yankee soldier is a soldier from the northern United States, while a union is a group of people or states that are united for a common purpose. During the American Civil War, the Union was the name given to the northern states that fought against the Confederate States of America, which were the southern states. Therefore, a Yankee soldier and a union did not fight for the same side.