as long as you didn't use EAD. H1 is different from F1. F1 is not allowed dual intend(immigration and nonimmgration), but H1 is allowed.