It depends. UCs are more focused on grades regardless of the rigor of your school. Others take into consideration your school. If you come from a well known rigorous school, most colleges will have heard of your school and take its tough grading into consideration.
But the advice above is sound. Talk to the college counselor at your school. If your school sends kids with comparable grades to competitive colleges, s/he will know.