^ to be fair, if there are several sections it’s smart to take classes from the better rated professors.
A 3.8 in college is an incredibly high bar. To give you perspective, med schools want 3.6+ and that’s a high bar. How high is only clear once you’ve been in a class of formerly top 10% students and the average is 55%.
What will serve you best is your work ethics. Work hard, starting the first day with your syllabus. Go to office hours and ask questions about the readings or problem sets, right the first week, even if no one else does.