I've got exactly this -- a 1927 Zeiss-Ikon Ideal, for which I have a spare bayonet-mount shutter that has no lens; I installed a pinhole in front of the shutter. In my case, I have a pinhole approximately .036", or about f/295 when the lens standard is at the camera's infinity stop (for the original 13.5 cm lens) -- but as noted, I can actually adjust the standard to any position from almost fully retracted (where I need to take advantage of the bed drop to avoid having the bed in the photo), to maximum close focus (for this camera, an extension of a couple inches, giving about a 185 mm projection distance).
The hole I have was optimized for the 135 mm distance when I made it, but moving it back toward the film plane won't make the image less sharp, it just won't gain sharpness as it would with a distance-optimized hole at the shorter distance (minimum is around 40 mm). Likewise, moving it away (by "focusing closer") won't hurt sharpness much; diffraction will overcome geometry a bit, but the end result won't be much less sharp than at the optimum distance.