According to this website it sounds as if they would. However, you would need excellent lighting as pinhole glasses cut down the amount of light that gets through to your eye.
It certainly looks as though it wouldn’t be very expensive to get a pair and see what they do for you.
Be aware, though, that this web site seems to imply a conspiracy against pinhole glasses, so caveat emptor.
My pinhole glasses came two days ago. They do indeed give me an undistorted image. However, wearing them takes some getting used to because of the distraction of the black between the pinholes. They do make good sunglasses, but wearing them inside is difficult.