questions

Hello! I am currently at a community college and i wanted to know if anyone has ever failed a class in community?? does it lessen your chances of going to a four year? If i applied to a cal state, will they reject me? I unfortunately will fail my first class due to the fact that the professor was not good and it was extremely tough..i need advice!