Yes, in an inverting circuit, the gain is Rf/Rin, so pick your resistors appropriately. So, for example, if Rin = 10Kohm and Rf = 1Kohm, G = -0.1.

However...a unity gain stable opamp isn't necessarily going to be stable at less than unity gain. If you're after an attenuation circuit, why not do it with a non-inverting configuration instead. With a unity gain stable opamp, set the feedback loop resistance to zero and use the output of a voltage divider to the noninverting input of the opamp. The gain will be the attenuation factor of the voltage divider.

You can do something similar with an inverting circuit, but it requires twice as many resistors and a little math:

Set the base gain for the opamp where Rf = Rin1 + Rin2. Then choose R where R = Rf(Gain/(2-2(Gain)), where Gain is the desired attenuation.

For example, if you want a gain of 0.01, and Rf = 10K, then R = 10E4*0.01/(2-2(0.01)) = 50 ohms.

-Drew