Do I have to take the Pre-Master Electrician course before I take the Master Electrician exam?

No. However, applicants that fail the exam 2 times are asked to take any type of Master Electrician preparatory training course or Code training course — either from ESA, or an accredited college/training facility/company — before attempting the exam a third time.