Q: i think it acts as a 5/ transition chord into F# minor in the song.
A: sure, that's right. Just the way C7 would be, to F minor