They’ll give you your prescription and literally wouldn’t sell me glasses even if I wanted them, since I wasn’t a store member. I did have to measure my own IPD though, which I did with a ruler and a mirror.
EDIT: another reply notes that they did get their IPD at Costco, so this might vary by location. As they mentioned, the optometrists are independent.