While not illegal in most jurisdictions, casinos generally frown upon card counting and may ban players caught using this technique. It is important to adhere to casino rules and regulations to ensure fair play and maintain the integrity of the game. Players should also exercise discretion and practice responsible gaming.