Yes. Workers under the H-1B or O-1 visas must pay taxes on all US-connected income.