Will getting a B in math [linear algebra at a college] as a prospective math major hurt my chances at top schools?

Really?? Would I have to change my major?? If that’s what the college told you, I assume that’s what most colleges would think. I can’t just exclude my grade because they can easily figure it out and can rescind me for hiding my grade.