No, you cannot cheat on slot machines online as they are operated using random number generators (RNG). However, at land-based casinos, it may be possible to do so. But when (not if) you get caught, you will either get banned from the casino or prosecuted. (You should hope to get banned – the prison sentences are lengthy.)