it is not an obligation, but
it is a matter of legal status. I think your boss will feel worse if you get him/her into legal trouble. right?
You can't be PR and H1 at the same time, there can be no overlap. So it is impossible for you to keep working as H1.