I don’t think sampling modern songs without permission (or at the very least, without credit given) is acceptable if the sample is going to be part of something that is sold, such as a complete work by a professional artist or music company. Sampling in a shorter sense I think is fine- such as TikToks, or YouTube videos. If the sample is from an audio in the public domain, credit should still be given somehow, just for clarity’s sake.