Can I deduct second bar exam?

I am a lawyer from Canada and already have passed the bar exam 12 years ago in Canada. I moved to Massachusetts in 2017 and took the Mass bar exam. My understanding is that the expenses for my Mass bar exam are tax deductible because I am not entering a new profession. Is this correct? If so, can I also deduct the bar preparation courses and other related expenses for my second bar?