Yes, you can upload your music that contains samples provided you acquire the necessary licenses.
In order to legally use a sample from a copyrighted song in your own music, you must obtain the following:
- A license for the usage of the master recording (often owned by a label)
- A license for the usage of underlying composition (controlled by the publisher/songwriter)
These licenses are valid until the predetermined amount of both streams and downloads is reached.
For more information visit this article.