Should work fine, you will have a really long exposure time though. On the other end of the spectrum UV photography is really good in a pinhole because a pinhole doesn't absorb the UV like glass. http://www.a1.nl/phomepag/markerink/uv_tips.htm

Try some and show us what you get!