I definitley think it is a bad idea. The air marshalls are the people who should be providing security not the pilots. Pilots are trained to fly planes not fight with terrorists.
Also to have badly trained people with guns on planes will put the chances of an accident up. Plus the chances of the guns falling into the terrorists hands go up.