Yes, you can definitely use pine needles in compost that you are going to put on your garden. No problem.
With regard to the worms, I think you may have two different things kind of mooshed together in your mind.
I would not recommend buying worms and tossing them in your compost pile. If you compost, the worms will come. You will not have to buy them.
That said, what you may be thinking about is vermicomposting. Meaning, a box or bin with bedding and special worms (red wigglers) that you feed with kitchen scraps on a regular basis.
Howard has this to say about it: Worm composting (or vermicomposting) is a natural and efficient way to “recycle†organic kitchen waste and compost your food scraps indoors with worms, and reduce the volume of your household garbage by as much as 25%. The end result is unsurpassed as an organic soil builder and plant fertilizer.
This (
search.php?keywords=vermicomposting&terms=all&author=&sc=1&sf=all&sk=t&sd=d&sr=posts&st=0&ch=300&t=0&submit=Search) is a link to a search in the forums on "vermicomposting". There are 9 results. I didn't read them all, but you should be able to get some more info here.
Happy gardening!
_________________
God speed!
Cara
**
Take time to stop and smell the flowers!
(or... as my ladybug refrigerator magnet says
"take time to stop and
eat the flowers!"
)