Generally, since it does not offer any advertising or ads of its own, Pirate Bay is not illegal. It is essentially a forum for peer-to-peer sharing. Therefore, you can use it without a doubt if you are in a country where the web hasn't been closed. And even if it has been blocked in your country, via the numerous pirate bay proxy sites open, you can still access it.