No you can't just defocus and get the same effect as a pinhole cap. A pinhole is a pinhole. A defocused image is just that, a defocused image. A pinhole image is focused however the limit of resolution is a function of the pinhole diameter.
You can make your own pinhole cap using a "body cap" which you may already have. When computing the pinhole size, there will be an optimum size as a function of the wavelength you want to focus and the distance to the film plane.
Google around for "pinhole designer" and use that for your calculations. You can measure from the lens flange on the front of your camera to the film plane. Remove film from camera, and fire the shutter on B to open the shutter and lift the mirror. Be careful you don't scratch things up. If you don't want to measure, 40mm is a good compromise focal length.
As to the wavelength of light to use for the calculation, well, again you have to compromise. Lots of people are using B&W photo paper so they tend to pick "blue" at 550nm. Can't really go wrong with that. But if you really want to get crazy with it, look at the spectral response chart of your film and work from its peak.
Lots of other comments can be made about making pinholes and if you need help, post again to this thread and I'll try to answer questions.
Or, just go buy a cap. On eBay, "pinholebilly" is a good source and cheaper than Finney (satisfied customer, no other relationship).