No, it is not illegal. You can teach yoga without a certificate or any degree. If you think you know yoga better than others, you can teach students and monetize your skill.