Yes there is technically a optimal pinhole diameter for a given distance of pinhole to film plane, once you have that pinhole diameter and distance you can work out the f stop to calculate exposure times.