Yes, in certain places sexting can be illegal. For instance it is illegal for sexting to take place in a school.