No, it is not advisable to switch on a microscope while looking through the eyepiece. It is important to turn on the microscope and adjust the focus and other settings before looking through the eyepiece to avoid any potential damage to the eyes or the microscope.