Yes. You are not allowed to work as a freelancer, independent contractor or be self-employed if you are on an H-1B visa.