Is it ok to cheat in exams where the teacher is allowing to cheat or they know we’re cheating and they’re okay with it?

It’s not allowed