Yes, you can. However, after using AP you are no longer H1 or L1, if your I140 is denied, you have to depart U.S. and try to obtain H1 or L1 visa stamp to return.