It appears to be possible, but I don't have the answer personally. See this photo:

There is a contact link for the photographer, Eric Renner, a leading pinhole expert, on the web page, and he'd probably be able to help you with details on the pinhole and paper setup, although the image is 37 years old.