That’s what people in the US mostly do.
You are still getting a glasses prescription, but since you are purchasing from the eye doctor who examined you, the “need” for a prescription is abstracted away.
If you called and asked for a written prescription, they would give it to you