F in a class?

It affects your application. But it does not mean you cannot apply and major in chemistry. It depends on how competitive the colleges you are applying to. Also, an F in any subject affects your application, regardless of the major.