Do senior grades matter for bs/md?

Just wondering if getting As in senior year will compensate for slight dip of Few Bs In sophomore and junior year.

These programs are highly competitive in terms of admissions. Assume that all of your grades will be taken into account.