Your intent to obtain an F-1 visa has to be valid to attend school full time. If you maintain valid and legal F-1 status and the I-526 petition is approved during your F-1 status then you can file your application for conditional permanent residency while residing in the U.S. Please make sure you are not subject to the two year residency requirement under the J-1 visa.