That’s like asking if torrenting is illegal. When you’re using BitTorrent (a file transfer protocol) to download or upload licensed or copyrighted content, it’s illegal. But when you use it to download copyright-free files, it is completely legal.