Can I travel to another country while in the U.S. on a B1 or B2 Visa?

Can I travel to another country while in the U.S. on a B1 or B2 Visa?