Vocational studies in L2 visa


I am in the US with L2 dependent visa. Am I allowed to study commercial pilot training in a academy?.

Ideally I should apply a M1 visa for vocational studies but I would like to know if I am allowed to study this pilot training course under L2 visa or should I have to apply for M1 visa.