Completely depends on the artist you're taking it from. Some artists may want credit; some may not want you to use it. It's best to reach out and ask before you use anything, especially if it's commercial use. There are also tons of free music assets here or on online websites that specialize in free music.