No. Contact lenses sit directly on the eyes, while glasses sit slightly away from the eyes, which may result in different prescriptions.
Additionally, prescribing contact lenses also requires information about the base curve and diameter of the eyes.
Therefore, when ordering contact lenses, you need a prescription specifically for contact lenses from an optometrist.