Calculate Distance of Light Source with Voltage Changes of Analog Input with LDR

Could a pinhole image give apparent source size magnified?