Yes - when the Civil War began, the U.S. Navy remained in
control of the Union (the United States), while the secessionist
States (Confederate States of America), established their own Navy.
Naturally, there were vessels and men who were a part of the United
States before the split, which became a part of the CSA Navy, but
the U.S. Navy officially was the Navy of the Union.