No, they are two different prescriptions. Glasses sit a few millimeters away from your eyes, and contacts are placed directly on the surface of your eyes, so the prescriptions will account for that. A contact lens prescription also includes specifications such as base curve and diameter, which is determined by the shape of your cornea.
A prescription for contacts is usually valid for one year and a prescription for eyeglasses is usually valid for one to two years.