Is it considered copyright if I used inspiration from a song that wasn’t ever released officially or finished but used only once for a tv episode?

Pls don’t answer if you’re just gonna say I don't know or act stupid. Is it considered copyright if i used inspiration from a song that wasn’t ever released officially or finished but was used/made only once for a tv episode?
Is it considered copyright if I used inspiration from a song that wasn’t ever released officially or finished but used only once for a tv episode?
Post Opinion