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

Repeating with the ordinary course is unlikely to be worthwhile, but taking an honors or higher level version may be worthwhile.