Yes, you may change status to H-1B even after you filed immigrant petition. Although H-1B is a non- immigrant visa, it allows immigrant intent and an H-1B petition cannot be denied on the immigrant intent basis.