Getting an F

I’m currently in my second year and got an F in my computer science class. My goal was to go to Grad school and get a masters in PA and I was wondering if this would affect my chances of getting in. It has nothing to do with my major of my career