Copyright = Copyright at the end of the day!
If someone else's property is in your video file, even for a brief amount of time, you're still stealing someone else's intellectual property!
HOWEVER, when on youtube, go to creator studio, then on the left hit "create", then hit audio library and search for the song there.
More than likely the song you are looking for is in that library (which has a TONNE of songs with full copyright info, latest, older ones, anything!) and will provide the limitations there!
Chances are you are allowed to use the song, just not monetise that video!