Richmond in the American Civil War

Richmond, Virginia, served as the capital of the Confederate States of America for almost the whole of the American Civil War. Not only was Richmond the seat of political power for the Confederacy, it served as a vital source of munitions, armament, weapons, supplies, and manpower for the Confederate States Army and Confederate States Navy, and as such would have been defended at all costs regardless of its political status. The city was less than 100 miles (160 km) from the Union capital in Washington, D.C..

Question: was richmond virginia the capital of the confederacy
Answer: yes