No, BaoFeng UV-5R has never been illegal to use in the amateur bands. However, it has been observed that it sometimes go out of the amateur frequency ranges; for which it is not certified and this is illegal. So, while using the UV-5R, make sure that it doesn’t transmit out the frequency range for which it is designed.