Yep, and it was done unconstitutionally.
U.S. Constitution, Article IV, Section 3, clause 1
New States may be admitted by the Congress into this Union; but no new States shall be formed or erected within the Jurisdiction of any other State; nor any State be formed by the Junction of two or more States, or parts of States, without the Consent of the Legislatures of the States concerned as well as of the Congress.
The federal government recognized the loyalist legislature at the Wheeling Convention as the legitimate government of Virginia; when the loyalist government voted to permit West Virginia to secede, Congress considered that to satisfy the requirement of Art. IV §3.