No you cannot purchase eyeglasses that need a prescription with an expired prescription.
You'll need a non expired and current prescription for purchase of prescription eyeglasses at any eyeglass store or optometrist.
If the prescription is expired then you won't be able to get the prescription eyeglasses.