No, first you need to serve them with a 24 Hours Notice of Intent to Enter Dwelling. Once the 24 hours are up, you may inspect the unit. If the tenant still refuses to allow you to inspect the property, you may have to get local law enforcement involved in order to enforce the notice. Not all local law enforcements will allow you to go in, but if you properly served the notice and educate the officer about Civil Code §1954, and possibly have a copy of the code with you to show the officer.