In most cases, yes sampling music and releasing that music will cost you money. If you commercially release a song with a sample in it, you need to obtain the permission of both the publisher of the music you sampled and the copyright owner of the recording. To get that permission will usually require a license fee and royalty sharing.