Hack An ATM, Play Angry Birds

Is it still illegal to do this if you switch it back when you’re done?