L2-B visa and switching to H4

Hi,

I am currently working on L2-B EAD and it will expire in March, My spouse has got the H1B lottery along with green card approval ( so I can get H4-EAD). Spouse will switch to H1b in nov- dec.

My question-

Do I need to resign if I am switching to H-4 though my current EAD is valid till march