Shaving does affect how much oil comes off from skin pores but whether or not it will lead to pimples depends mainly on the individual's body chemistry, so no generalization should be made here.