Yes, you can study in the U.S. while on an L2 EAD, but the primary purpose of the EAD is for employment.