If your company can keep the position for you, you can start to work again after you get your H-1B. You are legal to stay after your submit your H application before 5/31.