While removing vocals from a song using trusted and reliable software is safe, the law does not permit you to remove vocals or re-edit copyrighted music for commercial use without the permission of its owners. It is regarded as illegal. You can do so for personal use, but refrain from sharing it on social platforms like Facebook, Podcast, YouTube, etc.