No. They are distinct historical and political entities.
A federal state in Southeast Europe (1918–2003), comprising six republics: Slovenia, Croatia, Bosnia & Herzegovina, Serbia, Montenegro, and Macedonia. It dissolved through a series of wars in the 1990s.
A region within the former Yugoslavia, historically part of Serbia. After the 1998–99 Kosovo War and UN administration, it declared independence in 2008. Recognized by ~100+ UN members (including US, most EU), but not by Serbia, Russia, China, and others.
Kosovo is now a partially recognized sovereign state; Yugoslavia no longer exists.