No, it is not legal for a B2 visa holder to work in the USA. A B2 visa, often known as a tourist visa, only allows foreign individuals to visit the USA for leisure or medical treatment purposes. If someone on a B2 visa is found working, they could face serious consequences including deportation.