Not only yours, but all playlists. For example, I might find a really cool song that I've never heard before, and want to hear more musics like it, a playlist that the music is in will probably have musics that I will like it too.
In practice, it the implementation would be similar to this:
After using the search function and finding a music, right clicking the music will show a option "Playlists that features this music".
Though I don't see why you would limit it to the search bar, having the same option it in the discover tab would be really useful as well.