No, it is not illegal for you to unblock YouTube. There can be restrictions imposed on your country, but it doesn’t mean that you are kept away from watching those videos. You will still be able to go ahead and watch the videos on YouTube without an issue.