From a quick google search, I don't think this is correct. Racoons are considered fur bearing, and trapping is regulated, but there's an exemption for raccoons that are causing damage to livestock or homes. It does say specifically that you can't relocate a raccoon without the written permission of the California department of fish and wildlife.
http://www.ipm.ucdavis.edu/PMG/PESTNOTES/pn74116.html
For that exception to apply, the raccoons have to have actually CAUSED damage, not just passed through your yard. And you have to apply for permission to kill them. It is absolutely NOT legal to just shoot them because you think they're pests.