Yes. Title of this folk song is Kopala studienku. Slovak anthem has a folk tune just from this song. This song was and is a very popular on Slovakia, so to the melody of this song Janko Matúška wrote a patriotic text in 1844 and in 1918 this patriotic song become the slovak national anthem.
This would have been better in a true Slovak musical style instead of using western traditional musical beats and melodies given to us by Western Europeans.