Even if it’s possible to drive with a bad transmission valve body, you shouldn’t do so as it can damage the other parts of your transmission. That’ll lead to a more expensive repair bill in the future.