With a B2 visa, you can only engage in tourism and leisure activities, participate in social and amateur events, or travel to the US for temporary medical purposes. That means you cannot work, engage in formal employment, or earn remuneration. You also cannot study for a degree or credit, or enroll in a school or university while in the US on a B2 visa.